getPlayingAnimation

Script::getPlayingAnimation

Returns the index of the animation played by an Entity.

Declaration

uint32_t getPlayingAnimation(Entity entity);

Parameters

Name

Type

Description

entity

Entity

The Entity to get the playing Animation’s index of. It must have a Renderable Component.

Returns

The index of the currently playing animation. If no animation is playing, returns 0xFFFFFFFF.