AnimationEvents

Provides events triggered when the entity plays animation resource simulations.

For more information on subscribing to scene events, refer to com.pico.spatial.core.ecs.Scene.subscribe or com.pico.spatial.core.container.SpatialViewContent.subscribe.

Types

Link copied to clipboard

This event is triggered when an animation completes naturally. This event will not be triggered if you call stop() on a playback controller.

Link copied to clipboard
class Looped : Event

If the animation is set to loop upon creation, this event is triggered each time the animation completes a loop.

Link copied to clipboard
class Paused : Event

This event is triggered when a playing animation is paused by calling controller.pause().

Link copied to clipboard
class Resumed : Event

This event is triggered when a paused animation is resumed by calling controller.resume().

Link copied to clipboard
class Started : Event

This event is triggered when an animation starts, typically after calling entity.playAnimation().

Link copied to clipboard

This event is triggered when an animation is explicitly stopped by calling controller.stop(), regardless of whether it is completed.