FrameFilterImpl.AddFloatParam Method

Registers a float parameter than can be accessed using the methods of FrameFilter.
Syntax:
public delegate void SetFloatParam( float value );
public delegate float GetFloatParam();
protected void AddFloatParam( string name, SetFloatParam setFunc, GetFloatParam getFunc );

Name Description
name

Name of the parameter. This string has to be passed to FrameFilter.SetFloatParameter or FrameFilter.GetFloatParameter to access the parameter.

getFunc

GetFloatParam delegate responsible to return the current state of the parameter.

setFunc

SetFloatParam delegate responsible to receive and handle changes of the parameter.

Remarks:

All parameters of a frame filter should be registered in its constructor.

Example:

For an example on how to register a parameter, see AddIntParam.

See also: FrameFilterImpl, FrameFilterImpl.AddBoolParam, FrameFilterImpl.AddIntParam, FrameFilterImpl.AddStringParam, FrameFilterImpl.AddDataParam

<< FrameFilterImpl