Class NoInterpFloatRangeParameter
A VolumeParameter that holds a non-interpolating Vector2
value holding
a range of two float
values clamped between a minimum and a maximum value.
Inherited Members
Namespace: UnityEngine.Rendering
Syntax
[Serializable]
public class NoInterpFloatRangeParameter : VolumeParameter<Vector2>, IEquatable<VolumeParameter<Vector2>>
Constructors
NoInterpFloatRangeParameter(Vector2, Single, Single, Boolean)
Creates a new NoInterpFloatRangeParameter instance.
Declaration
public NoInterpFloatRangeParameter(Vector2 value, float min, float max, bool overrideState = false)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | value | The initial value to store in the parameter. |
Single | min | The minimum value to clamp the parameter to |
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 |
min
The minimum value to clamp this parameter to.
Declaration
[NonSerialized]
public float min
Field Value
Type | Description |
---|---|
Single |
Properties
value
The value that this parameter stores.
Declaration
public override Vector2 value { get; set; }
Property Value
Type | Description |
---|---|
Vector2 |
Overrides
UnityEngine.Rendering.VolumeParameter<UnityEngine.Vector2>.value
Remarks
You can override this property to define custom behaviors when the value is changed.