Closed ostwilkens closed 11 months ago
Aren't Scene0
and Scene1
different scenes? Are you sure Animation0
fits them both?
What happens when you try to play it only on Scene1
?
Aren't
Scene0
andScene1
different scenes? Are you sureAnimation0
fits them both?
Yes, Scene1 is a clone of Scene0.
What happens when you try to play it only on
Scene1
?
I can't believe I didn't try this! It fails as well. That's even more weird, seeing as the scenes are identical. This means the title isn't accurate, but I have no theories about what's happening. I will have to do more testing.
For context, my game uses a single .glb containing multiple rigged scenes, which use the same animations (as they are all humanoids).
FYI you can edit the title by using the "edit" button right next to the title.
This might be caused by the root entity name's not matching. This was removed, as it was considered a bug.
Consider using identical names for your scenes. If it's not possible in your 3D editor (for example, in blender), consider using https://github.com/nicopap/bevy-scene-hook to swap the name when the scene is spawned.
@nicopap Thank you for checking in on this issue!
I was confused as to how an entity name is relevant, as my animations (Actions) in blender AFAIK aren't connected to a specific scene. I just store them in the file.
However, you prompted me to look into the structure of the exported GLTF file. And apparently, all animations are re-exported for each scene!
So I guess this issue was born out of my lack of GLTF understanding, combined with a bevy bug, which I saw as a feature 😀
I will load each separate animation for the corresponding character, and it should work. Closing.
Bevy version
0.12
[Optional] Relevant system information
What you did
Refer to the same
Handle<AnimationClip>
on twoAnimationPlayer
sfoxes.glb minimal reproduction project.zip
What went wrong
WARN bevy_animation: Animation player on 58v0 did not match any entity paths.
Additional information
The issue appeared after migrating from 0.11 to 0.12