Class AnimationInfoPart
The animation info part.
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
Duration of the animation.
Declaration
public float Duration
Field Value
| Type | Description |
|---|---|
| float |
Events
Array of events.
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 frame rate of the animation.
Declaration
public string Name
Field Value
| Type | Description |
|---|---|
| string |
Samplers
Array of samplers.
Declaration
public AnimationSamplerModel[] Samplers
Field Value
| Type | Description |
|---|---|
| AnimationSamplerModel[] |
Type
Type of animation clip.
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's name. |
| float | startTime | The start time. |
| float | endTime | The end time. |
Returns
| Type | Description |
|---|---|
| AnimationInfoPart | The sub-animation. |
Read(BinaryReader)
Reads an animation info part from a 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. |