• Studio

  • Studio API

  • Bots

  • Web API

  • Designer Resources

  • Host Resources

  • Globals

    AnimationEventHandler

    Inherits from:

    Attach this script to a GameObject with an Animator to receive events when the animation graph state changes.

    self:GetComponent(AnimationEventHandler).StateExit:Connect(function(clip) print("AnimationClip " .. clip.name .. " finished playing") end)

    Properties

    StateEnter

    ClientOnly
    ReadOnly

    OnStateEnter is called when a transition starts and the state machine starts to evaluate this state.

    StateExit

    ClientOnly
    ReadOnly

    OnStateExit is called when a transition ends and the state machine finishes evaluating this state.

    StateIK

    ClientOnly
    ReadOnly

    OnStateIK is called right after Animator.OnAnimatorIK().

    StateMove

    ClientOnly
    ReadOnly

    OnStateMove is called right after Animator.OnAnimatorMove().

    StateUpdate

    ClientOnly
    ReadOnly

    OnStateUpdate is called on each Update frame between OnStateEnter and OnStateExit callbacks.

    Updated 24 days ago

    PocketWorlds Icon

    © 2025 Pocket Worlds. All rights reserved.