Is it possible to get the current animation that is playing on an entity?
Thanks.
Is it possible to get the current animation that is playing on an entity?
Thanks.
Hi @Fus_ion,
Indeed there isn’t a method or property exposed for that in the animation component. Of course if you’ve started playing the animation in code you could keep the animation name in a variable of yours.
Otherwise looking at the engine source code there is a property not exposed as a public API that can be of help:
// gets the name of the current animation playing
entity.animation.data.currAnim;
It worked thanks!