Class ClampedFloatParameter
A VolumeParameter that holds a float value clamped between a minimum and a
maximum value.
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
[Serializable]
public class ClampedFloatParameter : FloatParameter, ICloneable, IEquatable<VolumeParameter<float>>Constructors
ClampedFloatParameter(float, float, float, bool)
Creates a new ClampedFloatParameter instance.
Declaration
public ClampedFloatParameter(float value, float min, float max, bool overrideState = false)Parameters
| Type | Name | Description | 
|---|---|---|
| float | 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 maxField Value
| Type | Description | 
|---|---|
| float | 
See Also
min
The minimum value to clamp this parameter to.
Declaration
[NonSerialized]
public float minField Value
| Type | Description | 
|---|---|
| float | 
See Also
Properties
value
The value that this parameter stores.
Declaration
public override float value { get; set; }Property Value
| Type | Description | 
|---|---|
| float | 
Overrides
Remarks
You can override this property to define custom behaviors when the value is changed.