Class FloatRangeParameter
A VolumeParameter that holds a Vector2
value holding a range of two
float
values clamped between a minimum and a maximum value.
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
[Serializable]
public class FloatRangeParameter : VolumeParameter<Vector2>, ICloneable, IEquatable<VolumeParameter<Vector2>>
Constructors
FloatRangeParameter(Vector2, float, float, bool)
Creates a new FloatRangeParameter instance.
Declaration
public FloatRangeParameter(Vector2 value, float min, float max, bool overrideState = false)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | value | The initial value to store in the parameter. |
float | min | The minimum value to clamp the parameter to |
float | max | The maximum value to clamp the parameter to. |
bool | overrideState | The initial override state for the parameter. |
See Also
Fields
max
The maximum value to clamp this parameter to.
Declaration
[NonSerialized]
public float max
Field Value
Type | Description |
---|---|
float |
See Also
min
The minimum value to clamp this parameter to.
Declaration
[NonSerialized]
public float min
Field Value
Type | Description |
---|---|
float |
See Also
Properties
value
The value that this parameter stores.
Declaration
public override Vector2 value { get; set; }
Property Value
Type | Description |
---|---|
Vector2 |
Overrides
Remarks
You can override this property to define custom behaviors when the value is changed.
See Also
Methods
Interp(Vector2, Vector2, float)
Interpolates between two Vector2
values.
Declaration
public override void Interp(Vector2 from, Vector2 to, float t)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | from | The start value |
Vector2 | to | The end value |
float | t | The interpolation factor in range [0,1] |