Class Animation
Represents an animation with its associated bindings, length, and frame rate.
Inherited Members
Namespace: TriLibExporter.Objects
Assembly: Assembly-CSharp.dll
Syntax
public class Animation : ObjectBase
Constructors
Animation(AssetWriterContext, string, float, float)
Initializes a new instance of the Animation class with a specified name, length, and frame rate.
Declaration
public Animation(AssetWriterContext assetWriterContext, string name, float length, float framerate)
Parameters
Type | Name | Description |
---|---|---|
AssetWriterContext | assetWriterContext | The context of the asset writer. |
string | name | The name of the animation. |
float | length | The length of the animation in seconds. |
float | framerate | The frame rate of the animation. |
Animation(AssetWriterContext, AnimationClip)
Initializes a new instance of the Animation class using an animation clip.
Declaration
public Animation(AssetWriterContext assetWriterContext, AnimationClip animationClip)
Parameters
Type | Name | Description |
---|---|---|
AssetWriterContext | assetWriterContext | The context of the asset writer. |
AnimationClip | animationClip | The Unity animation clip to represent. |
Fields
AnimationBindings
A dictionary mapping models to their animation bindings.
Declaration
public Dictionary<Model, AnimationBinding> AnimationBindings
Field Value
Type | Description |
---|---|
Dictionary<Model, AnimationBinding> |
Framerate
The frame rate of the animation.
Declaration
public readonly float Framerate
Field Value
Type | Description |
---|---|
float |
Length
The length of the animation in seconds.
Declaration
public readonly float Length
Field Value
Type | Description |
---|---|
float |