Class Vector2Parameter
A VolumeParameter that holds a Vector2
value.
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
[Serializable]
public class Vector2Parameter : VolumeParameter<Vector2>, ICloneable, IEquatable<VolumeParameter<Vector2>>
Constructors
Vector2Parameter(Vector2, bool)
Creates a new Vector2Parameter instance.
Declaration
public Vector2Parameter(Vector2 value, bool overrideState = false)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | value | The initial value to store in the parameter. |
bool | overrideState | The initial override state for the parameter. |
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]. |