Class FloatParameter
A VolumeParameter that holds a float
value.
Inherited Members
Namespace: UnityEngine.Rendering
Syntax
[Serializable]
public class FloatParameter : VolumeParameter<float>, IEquatable<VolumeParameter<float>>
Constructors
FloatParameter(Single, Boolean)
Creates a new FloatParameter instance.
Declaration
public FloatParameter(float value, bool overrideState = false)
Parameters
Type | Name | Description |
---|---|---|
Single | value | The initial value to store in the parameter |
Boolean | overrideState | The initial override state for the parameter |
Methods
Interp(Single, Single, Single)
Interpolates between two float
values.
Declaration
public sealed override void Interp(float from, float to, float t)
Parameters
Type | Name | Description |
---|---|---|
Single | from | The start value |
Single | to | The end value |
Single | t | The interpolation factor in range [0,1] |
Overrides
UnityEngine.Rendering.VolumeParameter<System.Single>.Interp(System.Single, System.Single, System.Single)