0 votes

Hi, is that a way to get the name of current animation from an AnimationPlayer when it is been played by an Animation Tree?

I could do it with $AnimationPlayer.current_animation, but if the animation player is controlled by an Animation Tree node, the code no longer works, if always print out nothing instead of the name of current animation. Thank you.

Godot version v3.4.4
in Engine by (266 points)

1 Answer

0 votes
$AnimationTree.tree_root.get_node("AnimationNodeName").animation
by (7,742 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.