Class AnimationChannelModel
This class represents an animation channel model.
Namespace: Evergine.Framework.Assets.Importers.GltfModel
Assembly: Evergine.Framework.dll
Syntax
public class AnimationChannelModel
Fields
Duration
The duration of the animation.
Declaration
public float Duration
Field Value
| Type | Description |
|---|---|
| float |
NodeIndex
The index of the node 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 target of the animation channel.
Declaration
public AnimationChannelModel.AnimationChannelTargets Target
Field Value
| Type | Description |
|---|---|
| AnimationChannelModel.AnimationChannelTargets |
Methods
Read(BinaryReader)
Reads 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 starting time. |
| float | endTime | The ending time. |
Returns
| Type | Description |
|---|---|
| AnimationChannelModel | The new animation channel. |
Write(BinaryWriter)
Writes this asset part.
Declaration
public void Write(BinaryWriter writer)
Parameters
| Type | Name | Description |
|---|---|---|
| BinaryWriter | writer | The binary writer. |