Hi everyone! I'm having an issue with some animations I'm importing from a .blend file. The file contains a few Mixamo animations that work perfectly, both in the editor and in-game. Now I'm trying to create my own animations but for some reason they only play on the editor.
I'm pretty sure this isn't a code issue, if I swap one of my new animations for a mixamo one it plays correctly (by swap I mean setting a different animation in my animation tree state machine).
I can see the animations in Godot, so I know they are being exported, and they play correctly on the editor if I manually set the animation tree conditions, but when the game is running they do not play at all (I've also checked the remote tab and I'm sure the conditions are being set correctly).
I've tried a few things, like pushing the actions down into the NLA stack, re-importing the file, messing with the import settings, deleting the file and importing it again.
Anyone has any idea of what else I could try?
Animation works in-editor but not in-game
- Best Answerset by annie-star
annie-star make sure:
you are using Humanoid Skeletons
and it's setup correctly, in the import window. for retargeting
the file is set as animation library
the names of the bones are the same
the number of bones is the same
you are loading the animation libraries in the AnimationPlayer
and they play correctly. set AnimationTree
->active
to false
to use the AnimationPlayer
.
the AnimationTree
node is active
the AnimationPlayer
is stopped
the skeleton
is not being set to activate ragdoll
Even though I'm not retargeting anything (all animations are on the same file and the same armature), adding a SkeletonProfileHumanoid worked! Thanks