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