Constructor TextureCurve
TextureCurve(AnimationCurve, float, bool, in Vector2)
Creates a new TextureCurve from an existing AnimationCurve.
Declaration
public TextureCurve(AnimationCurve baseCurve, float zeroValue, bool loop, in Vector2 bounds)
Parameters
| Type | Name | Description |
|---|---|---|
| AnimationCurve | baseCurve | The source |
| float | zeroValue | The default value to use when the curve doesn't have any key. |
| bool | loop | Should the curve automatically loop in the given |
| Vector2 | bounds | The boundaries of the curve. |
TextureCurve(Keyframe[], float, bool, in Vector2)
Creates a new TextureCurve from an arbitrary number of keyframes.
Declaration
public TextureCurve(Keyframe[] keys, float zeroValue, bool loop, in Vector2 bounds)
Parameters
| Type | Name | Description |
|---|---|---|
| Keyframe[] | keys | An array of Keyframes used to define the curve. |
| float | zeroValue | The default value to use when the curve doesn't have any key. |
| bool | loop | Should the curve automatically loop in the given |
| Vector2 | bounds | The boundaries of the curve. |