Class MaxFloatParameter
A VolumeParameter that holds a float
value clamped to a max value.
Inherited Members
Namespace: UnityEngine.Rendering
Syntax
[Serializable]
public class MaxFloatParameter : FloatParameter, IEquatable<VolumeParameter<float>>
Constructors
MaxFloatParameter(Single, Single, Boolean)
Creates a new MaxFloatParameter instance.
Declaration
public MaxFloatParameter(float value, float max, bool overrideState = false)
Parameters
Type | Name | Description |
---|---|---|
Single | value | The initial value to store in the parameter. |
Single | max | The maximum value to clamp the parameter to. |
Boolean | overrideState | The initial override state for the parameter. |
Fields
max
The maximum value to clamp this parameter to.
Declaration
[NonSerialized]
public float max
Field Value
Type | Description |
---|---|
Single |
Properties
value
The value that this parameter stores.
Declaration
public override float value { get; set; }
Property Value
Type | Description |
---|---|
Single |
Overrides
UnityEngine.Rendering.VolumeParameter<System.Single>.value
Remarks
You can override this property to define custom behaviors when the value is changed.