Class ParameterOverride<T>
The base typed class for all parameter override types.
Inherited Members
Namespace: UnityEngine .Rendering.PostProcessing
Assembly: solution.dll
Syntax
[Serializable]
public class ParameterOverride<T> : ParameterOverride
Type Parameters
Name | Description |
---|---|
T | The type of value to store in this |
Remarks
Due to limitations with the serialization system in Unity you shouldn't use this class
directly. Use one of the pre-flatten types (like Float
Examples
This sample code shows how to make a custom parameter holding a float
.
[Serializable]
public sealed class FloatParameter : ParameterOverride<float>
{
public override void Interp(float from, float to, float t)
{
value = from + (to - from) * t;
}
}
Constructors
Name | Description |
---|---|
Parameter |
Creates a |
Parameter |
Creates a |
Parameter |
Creates a |
Fields
Name | Description |
---|---|
value | The value stored in this parameter. |
Methods
Name | Description |
---|---|
Get |
Returns the computed hash code for this parameter. |
Interp(T, T, float) | Interpolates between two values given an interpolation factor |
Override(T) | Sets the value for this parameter to |
Operators
Name | Description |
---|---|
implicit operator T(Parameter |
Implicit conversion between Parameter |