AnimationCurve Class
Namespace: Stride.AnimationsAssembly: Stride.Engine.dll
Untyped base class for animation curves.
[DataContract(Inherited = true)]
public abstract class AnimationCurve
| Name | Description | |
|---|---|---|
| Constructors | ||
| AnimationCurve() | ||
| Properties | ||
| ElementSize | Gets the size of keyframe values. |
|
| ElementType | Gets the type of keyframe values. |
|
| InterpolationType | Gets or sets the interpolation type. |
|
| 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. |
|
| ShiftKeys(CompressedTimeSpan) | Shifts all animation keys by the specified time, adding it to all |
|
Constructors
AnimationCurve()
protected AnimationCurve()
Properties
ElementSize
Gets the size of keyframe values.
public abstract int ElementSize { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | The size of keyframe values. |
ElementType
Gets the type of keyframe values.
public abstract Type ElementType { get; }
Property Value
| Type | Description |
|---|---|
| System.Type | The type of keyframe values. |
InterpolationType
Gets or sets the interpolation type.
public AnimationCurveInterpolationType InterpolationType { get; set; }
Property Value
| Type | Description |
|---|---|
| AnimationCurveInterpolationType | The interpolation type. |
Keys
public abstract IReadOnlyList<CompressedTimeSpan> Keys { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IReadOnlyList<CompressedTimeSpan> |
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.
public abstract void AddValue(CompressedTimeSpan newTime, IntPtr location)
Parameters
| Type | Name | Description |
|---|---|---|
| CompressedTimeSpan | newTime | The new time. |
| System.IntPtr | location | The location. |
ShiftKeys(CompressedTimeSpan)
Shifts all animation keys by the specified time, adding it to all
public virtual void ShiftKeys(CompressedTimeSpan shiftTimeSpan)
Parameters
| Type | Name | Description |
|---|---|---|
| CompressedTimeSpan | shiftTimeSpan | The time span by which the keys should be shifted |