Multiple AnimationPlayer nodes in a scene?

Godot Version

4.4.stable

Question

Does it make sense to have multiple AnimationPlayer nodes in the same scene? I have one for each object that is animated but recently I noticed that one Animation player can manage multiple objects with multiple tracks on its own. What is the standard convention or recommendation?

An AnimationPlayer can have multiple Animation resources and each Animation can have multiple tracks animating multiple properties of multiple objects but an AnimationPlayer can’t play multiple Animations at the same time.

Yes, if you need to play multiple Animations at once you will need one AnimationPlayer per Animation.

If the animations don’t need to be synced then this is okay. If the animations have to be synced all the time and are the same length then maybe using one AnimationPlayer is a better choice. You could still use one AnimationPlayer per object but they may get de-synced unless you set the AnimationMixer.callback_mode_process to Manual and manually call AnimationMixer.advance() each frame in each AnimationPlayer.

I don’t think there’s a convention or recommendation. Choose the way that’s more comfortable for you and your workflow.

1 Like

Thank you!