Train Simulator NEXT
In This Topic
    GetAnimationIndex function
    In This Topic

    This function queries the index of a specific animation layer.

    Syntax

    Copy Code
    int GetAnimationIndex( string AnimationName );

    Parameters

    AnimationName

    Type: string

    The name of the animation to look up.

    Returns

    Returns an int the index of the requested animation by name.

    If not found or an error occured, this function returns INT32_MAX.

    See Also