Class Spline
A wrapper on top of AnimationCurve to handle zero-key curves and keyframe loops.
Inherited Members
Namespace: UnityEngine.Rendering.PostProcessing
Assembly: solution.dll
Syntax
[Serializable]
public sealed class Spline
Constructors
Name | Description |
---|---|
Spline(AnimationCurve, float, bool, Vector2) | Creates a new spline. |
Fields
Name | Description |
---|---|
cachedData | An array holding pre-computed curve values. |
curve | The underlying animation curve instance. |
k_Precision | Precision of the curve. |
k_Step | The inverse of the precision of the curve. |
Methods
Name | Description |
---|---|
Cache(int) | Caches the curve data at a given frame. The curve data will only be cached once per frame. |
Evaluate(float) | Evaluates the curve at a point in time. |
Evaluate(float, int) | Evaluates the curve at a point in time. |
GetHashCode() | Returns the computed hash code for this parameter. |