Struct Curve
Syntax
public struct Curve : IDisposable
Constructors
Curve(AnimationCurve, Allocator)
Declaration
public Curve(AnimationCurve c, Allocator alloc)
Parameters
| Type |
Name |
Description |
| AnimationCurve |
c |
|
| Allocator |
alloc |
|
Curve(Keyframe[], Allocator)
Declaration
public Curve(Keyframe[] keyframes, Allocator alloc)
Parameters
| Type |
Name |
Description |
| Keyframe[] |
keyframes |
|
| Allocator |
alloc |
|
Curve(NativeArray<Keyframe>)
Declaration
public Curve(NativeArray<Keyframe> keyframes)
Parameters
| Type |
Name |
Description |
| NativeArray<Keyframe> |
keyframes |
|
Curve(NativeArray<Keyframe>, Allocator)
Declaration
public Curve(NativeArray<Keyframe> keyframes, Allocator alloc)
Parameters
| Type |
Name |
Description |
| NativeArray<Keyframe> |
keyframes |
|
| Allocator |
alloc |
|
Curve(Int32, Allocator)
Declaration
public Curve(int size, Allocator alloc)
Parameters
| Type |
Name |
Description |
| Int32 |
size |
|
| Allocator |
alloc |
|
Curve(Curve)
Declaration
public Curve(Curve other)
Parameters
| Type |
Name |
Description |
| Curve |
other |
|
Curve(Curve, Allocator)
Declaration
public Curve(Curve other, Allocator alloc)
Parameters
| Type |
Name |
Description |
| Curve |
other |
|
| Allocator |
alloc |
|
Fields
Keys
Declaration
public readonly NativeArray<Keyframe> Keys
Field Value
| Type |
Description |
| NativeArray<Keyframe> |
|
Properties
Duration
Declaration
public float Duration { get; }
Property Value
Length
Declaration
public int Length { get; }
Property Value
Methods
Dispose()
Declaration
Evaluate(Single)
Declaration
public float Evaluate(float time)
Parameters
| Type |
Name |
Description |
| Single |
time |
|
Returns