AnimationCurve<T> Class
Namespace: Stride.AnimationsAssembly: Stride.Engine.dll
Typed class for animation curves.
[DataContract]
public class AnimationCurve<T> : AnimationCurve
Type Parameters
| Name | Description |
|---|---|
| T |
| Name | Description | |
|---|---|---|
| Constructors | ||
| AnimationCurve() | ||
| Properties | ||
| ElementSize | Gets the size of keyframe values. |
|
| ElementType | Gets the type of keyframe values. |
|
| KeyFrames | Gets or sets the key frames. |
|
| Keys | ||
| Methods | ||
| AddValue(CompressedTimeSpan, IntPtr) | Writes a new value at the end of the curve (used for building curves). It should be done in increasing order as it will simply add a new key at the end of KeyFrames. |
|
| FindKeyIndex(CompressedTimeSpan) | Find key index. |
|
| ShiftKeys(CompressedTimeSpan) | Shifts all animation keys by the specified time, adding it to all |
|
Constructors
AnimationCurve()
public AnimationCurve()
Properties
ElementSize
Gets the size of keyframe values.
public override int ElementSize { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | The size of keyframe values. |
Overrides
ElementType
Gets the type of keyframe values.
public override Type ElementType { get; }
Property Value
| Type | Description |
|---|---|
| System.Type | The type of keyframe values. |
Overrides
KeyFrames
Gets or sets the key frames.
public FastList<KeyFrameData<T>> KeyFrames { get; set; }
Property Value
| Type | Description |
|---|---|
| FastList<KeyFrameData<T>> | The key frames. |
Keys
public override IReadOnlyList<CompressedTimeSpan> Keys { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IReadOnlyList<CompressedTimeSpan> |
Overrides
| Improve this Doc View SourceMethods
AddValue(CompressedTimeSpan, IntPtr)
Writes a new value at the end of the curve (used for building curves). It should be done in increasing order as it will simply add a new key at the end of KeyFrames.
public override void AddValue(CompressedTimeSpan newTime, IntPtr location)
Parameters
| Type | Name | Description |
|---|---|---|
| CompressedTimeSpan | newTime | The new time. |
| System.IntPtr | location | The location. |
Overrides
FindKeyIndex(CompressedTimeSpan)
Find key index.
public int FindKeyIndex(CompressedTimeSpan time)
Parameters
| Type | Name | Description |
|---|---|---|
| CompressedTimeSpan | time |
Returns
| Type | Description |
|---|---|
| System.Int32 |
ShiftKeys(CompressedTimeSpan)
Shifts all animation keys by the specified time, adding it to all
public override void ShiftKeys(CompressedTimeSpan shiftTimeSpan)
Parameters
| Type | Name | Description |
|---|---|---|
| CompressedTimeSpan | shiftTimeSpan | The time span by which the keys should be shifted |