TriLib Exporter
Search Results for

    Show / Hide Table of Contents

    Class Animation

    Represents an animation with its associated bindings, length, and frame rate.

    Inheritance
    object
    ObjectBase
    Animation
    Inherited Members
    ObjectBase.Name
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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
    In this article
    Back to top Generated by DocFX