UnityEditor.IAudioEffectPlugin.SetFloatParameter C# (CSharp) Method

SetFloatParameter() public abstract method

public abstract SetFloatParameter ( string name, float value ) : bool
name string
value float
return bool
        public abstract bool SetFloatParameter(string name, float value);
    }

Usage Example

Example #1
0
        public override bool OnGUI(IAudioEffectPlugin plugin)
        {
            float blend = (!plugin.IsPluginEditableAndEnabled()) ? 0.5f : 1f;
            float value;

            plugin.GetFloatParameter(ParamEqGUI.kCenterFreqName, out value);
            float value2;

            plugin.GetFloatParameter(ParamEqGUI.kOctaveRangeName, out value2);
            float value3;

            plugin.GetFloatParameter(ParamEqGUI.kFrequencyGainName, out value3);
            GUILayout.Space(5f);
            Rect rect = GUILayoutUtility.GetRect(200f, 100f, new GUILayoutOption[]
            {
                GUILayout.ExpandWidth(true)
            });

            if (ParamEqGUI.ParamEqualizerCurveEditor(plugin, rect, ref value, ref value2, ref value3, blend))
            {
                plugin.SetFloatParameter(ParamEqGUI.kCenterFreqName, value);
                plugin.SetFloatParameter(ParamEqGUI.kOctaveRangeName, value2);
                plugin.SetFloatParameter(ParamEqGUI.kFrequencyGainName, value3);
            }
            return(true);
        }
All Usage Examples Of UnityEditor.IAudioEffectPlugin::SetFloatParameter