/// <description> /// Attach<paramref name="" /> parameter to the source, /// /// Once attached, the source will react to value changes of the given /// </description> /// <param name="parameter">The parameter to attach to the source.</param> public void AddParameter(SFXParameter parameter) { InternalUnsafeMethods.AddParameter__Args _args = new InternalUnsafeMethods.AddParameter__Args() { parameter = parameter.ObjectPtr, }; InternalUnsafeMethods.AddParameter()(ObjectPtr, _args); }
/// <description> /// Called when a parameter attached to the source changes value. /// This callback will be triggered before the value change has actually been applied to the source. /// </description> /// <param name="parameter">The parameter that has changed value.</param> /// <remarks> This is also triggered when the parameter is first attached to the source.</remarks> public virtual void OnParameterValueChange(SFXParameter parameter) { InternalUnsafeMethods.OnParameterValueChange__Args _args = new InternalUnsafeMethods.OnParameterValueChange__Args() { parameter = parameter.ObjectPtr, }; InternalUnsafeMethods.OnParameterValueChange()(ObjectPtr, _args); }