Class AnimationCurveParameter
A VolumeParameter that holds an AnimationCurve
value.
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
[Serializable]
public class AnimationCurveParameter : VolumeParameter<AnimationCurve>, ICloneable, IEquatable<VolumeParameter<AnimationCurve>>
Constructors
AnimationCurveParameter(AnimationCurve, bool)
Creates a new AnimationCurveParameter instance.
Declaration
public AnimationCurveParameter(AnimationCurve value, bool overrideState = false)
Parameters
Type | Name | Description |
---|---|---|
AnimationCurve | value | The initial value to be stored in the parameter |
bool | overrideState | The initial override state for the parameter |
Methods
Clone()
Clones the current instance of the VolumeParameter
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
object | A new created instance with the same values as the current instance of VolumeParameter |
Overrides
GetHashCode()
Returns a hash code for the animationCurve.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the animationCurve. |
Overrides
Interp(AnimationCurve, AnimationCurve, float)
Interpolates between two AnimationCurve values. Note that it will overwrite the values in lhsCurve, whereas rhsCurve data will be unchanged. Thus, it is legal to call it as: stateParam.Interp(stateParam, toParam, interpFactor); However, It should NOT be called when the lhsCurve parameter needs to be preserved. But the current framework modifies it anyway in VolumeComponent.Override for all types of VolumeParameters
Declaration
public override void Interp(AnimationCurve lhsCurve, AnimationCurve rhsCurve, float t)
Parameters
Type | Name | Description |
---|---|---|
AnimationCurve | lhsCurve | The start value. |
AnimationCurve | rhsCurve | The end value. |
float | t | The interpolation factor in range [0,1]. |
Overrides
SetValue(VolumeParameter)
Sets the value of this parameter to the value in parameter
.
Declaration
public override void SetValue(VolumeParameter parameter)
Parameters
Type | Name | Description |
---|---|---|
VolumeParameter | parameter | The VolumeParameter to copy the value from. |