+1 vote

Hi all. I'm currently playing around with the animation editor in Godot 2.1.4. I'm quite curious that after completed 5 animations for an AnimationPlayer, should I save all 5 animations as separate .tres files, or just save the AnimationPlayer as a scene?

in Engine by (25 points)

1 Answer

+2 votes
Best answer

Generally the AnimationPlayer just contains the scene's animations, and you save it along with the scene. You can run into problems if you move the AnimationPlayer around and the track names no longer reflect the node paths correctly. You'd have to go in and manually fix these track names.

Saving off individual animations as resources is for more niche things. Maybe such as copying specific ones to other AnimationPlayer that has the same scene structure. Swapping them in and out using code at runtime, etc. I think you'd only want to do it if you can think of a specific reason why you'd need to do it.

by (5,278 points)
selected by

Thanks for your detailed explanation. I guess saving the whole scene (which contains the AnimationPlayer node) fits my need best.

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.