Constructor Spline
Spline(AnimationCurve, float, bool, Vector2)
Creates a new spline.
Declaration
public Spline(AnimationCurve curve, float zeroValue, bool loop, Vector2 bounds)
Parameters
Type | Name | Description |
---|---|---|
AnimationCurve | curve | The animation curve to base this spline off |
float | zeroValue | The value to return when the curve has no keyframe |
bool | loop | Should this curve loop? |
Vector2 | bounds | The curve bounds |