Skip to content

Reuse the same scene from gltf file brakes scene animation #8996

Answered by nicopap
volodalexey asked this question in Q&A
Discussion options

You must be logged in to vote

So I closed the issue, because this is more a question on how to do something than reporting a bug.

I invite you to open a new issue if you think the example is misleading (I would agree on this).


So there is a slight misunderstanding here.

I think you are referencing to the following code right?

// Once the scene is loaded, start the animation
fn setup_scene_once_loaded(
animations: Res<Animations>,
mut player: Query<&mut AnimationPlayer>,
mut done: Local<bool>,
) {
if !*done {
if let Ok(mut player) = player.get_single_mut() {
player.play(animations.0[0].clone_weak()).re…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@volodalexey
Comment options

@nicopap
Comment options

Answer selected by volodalexey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
C-Examples An addition or correction to our examples A-Animation Make things move and change over time
2 participants
Converted from issue

This discussion was converted from issue #8995 on June 29, 2023 09:46.