Class AnimationInfoPart
The Animation info part.
Inherited Members
Namespace: Evergine.Framework.Assets.AssetParts
Assembly: Evergine.Framework.dll
Syntax
public class AnimationInfoPart : AssetPart
Fields
Channels
Animation channels.
Declaration
public AnimationChannelModel[] Channels
Field Value
Type | Description |
---|---|
AnimationChannelModel[] |
Duration
The duration of the animation.
Declaration
public float Duration
Field Value
Type | Description |
---|---|
float |
Events
Events array.
Declaration
public AnimationKeyframeEvent[] Events
Field Value
Type | Description |
---|---|
AnimationKeyframeEvent[] |
InPlaceMode
Animation in place mode.
Declaration
public AnimationInPlaceMode InPlaceMode
Field Value
Type | Description |
---|---|
AnimationInPlaceMode |
Name
The framerate of the animation.
Declaration
public string Name
Field Value
Type | Description |
---|---|
string |
Samplers
Samplers array.
Declaration
public AnimationSamplerModel[] Samplers
Field Value
Type | Description |
---|---|
AnimationSamplerModel[] |
Type
Animation clip type.
Declaration
public AnimationClipType Type
Field Value
Type | Description |
---|---|
AnimationClipType |
Methods
GetSubAnimation(string, float, float)
Gets a fragment of the animation.
Declaration
public AnimationInfoPart GetSubAnimation(string name, float startTime, float endTime)
Parameters
Type | Name | Description |
---|---|---|
string | name | The animation name. |
float | startTime | The start time. |
float | endTime | The end time. |
Returns
Type | Description |
---|---|
AnimationInfoPart | The sub animation. |
Read(BinaryReader)
Read an animation info part from binary reader.
Declaration
public static AnimationInfoPart Read(BinaryReader reader)
Parameters
Type | Name | Description |
---|---|---|
BinaryReader | reader | The binary reader. |
Returns
Type | Description |
---|---|
AnimationInfoPart | The animation info part. |
Write(BinaryWriter)
Writes the sub asset.
Declaration
public override void Write(BinaryWriter writer)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The stream. |