Class AnimationChannelModel
This class represent an animation channel model.
Inherited Members
Namespace: Evergine.Framework.Assets.Importers.GltfModel
Assembly: Evergine.Framework.dll
Syntax
public class AnimationChannelModel
Fields
Duration
The animation duration.
Declaration
public float Duration
Field Value
Type | Description |
---|---|
float |
NodeIndex
The node index of the channel.
Declaration
public int NodeIndex
Field Value
Type | Description |
---|---|
int |
Sampler
The animation sampler.
Declaration
public int Sampler
Field Value
Type | Description |
---|---|
int |
Target
The animation channel target.
Declaration
public AnimationChannelModel.AnimationChannelTargets Target
Field Value
Type | Description |
---|---|
AnimationChannelModel.AnimationChannelTargets |
Methods
Read(BinaryReader)
Read this asset part.
Declaration
public static AnimationChannelModel Read(BinaryReader reader)
Parameters
Type | Name | Description |
---|---|---|
BinaryReader | reader | The binary reader. |
Returns
Type | Description |
---|---|
AnimationChannelModel | The loaded asset part. |
SubChannel(float, float)
Creates a new animation channel from this channel.
Declaration
public AnimationChannelModel SubChannel(float startTime, float endTime)
Parameters
Type | Name | Description |
---|---|---|
float | startTime | The start time. |
float | endTime | The end time. |
Returns
Type | Description |
---|---|
AnimationChannelModel | The new animation channel. |
Write(BinaryWriter)
Write this asset part.
Declaration
public void Write(BinaryWriter writer)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The binary writer. |