• Studio

  • Studio API

  • Bots

  • Web API

  • Designer Resources

  • Host Resources

  • Globals

    AnimationEventHandler

    Inherits from: WorldBehaviour

    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

    LuaEvent

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

    StateExit

    LuaEvent

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

    StateIK

    LuaEvent

    OnStateIK is called right after Animator.OnAnimatorIK().

    StateMove

    LuaEvent

    OnStateMove is called right after Animator.OnAnimatorMove().

    StateUpdate

    LuaEvent

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

    Updated 28 minutes ago

    PocketWorlds Icon

    © 2025 Pocket Worlds. All rights reserved.