• Plays an Unity animation state with given name on the GameObject's animator. Note that not all game objects have Unity animations. You should ask the people who provided you the prefab asset bundle for available animation names assigned to the prefab.

    If you provide an invalid animator state name, this function will not take effect.

    3D mode only

    Parameters

    • gameObjectIdentifier: GameObjectIdentifier

      The identifier for the GameObject that you want to play the animation on.

    • animatorStateName: string

      The name for the animator state to play.

    Returns void

Generated using TypeDoc