Search Results for

    Show / Hide Table of Contents

    Struct NodeAnimationData

    Single node animation data container.

    Assembly: FlaxEngine.dll
    File: Engine/Animations/AnimationData.h
    Syntax
    public struct NodeAnimationData

    Constructors

    NodeAnimationData()

    Initializes a new instance of the NodeAnimationData class.

    Declaration
    public NodeAnimationData()

    Fields

    NodeName

    The target node name.

    Declaration
    public String NodeName
    Field Value
    String

    Position

    The position channel animation.

    Declaration
    public LinearCurve<Float3> Position
    Field Value
    LinearCurve<Float3>

    Rotation

    The rotation channel animation.

    Declaration
    public LinearCurve<Quaternion> Rotation
    Field Value
    LinearCurve<Quaternion>

    Scale

    The scale channel animation.

    Declaration
    public LinearCurve<Float3> Scale
    Field Value
    LinearCurve<Float3>

    Methods

    Evaluate(float time, Transform* result, bool loop=true)

    Evaluates the animation transformation at the specified time (only for the curves with non-empty data).

    Declaration
    public void Evaluate(float time, Transform* result, bool loop=true) const
    Parameters
    float time

    The time to evaluate the curves at.

    Transform result

    The interpolated value from the curve at provided time.

    bool loop

    If true the curve will loop when it goes past the end or beginning. Otherwise the curve value will be clamped.

    EvaluateAll(float time, Transform* result, bool loop=true)

    Evaluates the animation transformation at the specified time.

    Declaration
    public void EvaluateAll(float time, Transform* result, bool loop=true) const
    Parameters
    float time

    The time to evaluate the curves at.

    Transform result

    The interpolated value from the curve at provided time.

    bool loop

    If true the curve will loop when it goes past the end or beginning. Otherwise the curve value will be clamped.

    GetKeyframesCount()

    Gets the total amount of keyframes in the animation curves.

    Declaration
    public int32 GetKeyframesCount() const
    Returns
    int32

    GetMemoryUsage()

    Declaration
    public uint64 GetMemoryUsage() const
    Returns
    uint64

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat