You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When spawning an entity with a particle effect that is configured with Spawner::once and starts_immediately set to true, it does not emit any particles. However, it does happen the second time an entity of the exact same configuration is spawned.
Expected behavior
The first time the entity is spawned with the above configuration, particles should emit.
To Reproduce
Insert a resource containing an effect asset that uses a "once" spawner with starts_immediately set to true. This happens in a Startup system.
In an Update system that runs if an event is received, a ParticleEffectBundle is spawned in a new entity, which references the effect asset created earlier.
Trigger the event once, no particles are emitted from the spawned entity.
Trigger the event a second time and the particles are correctly emited from the second spawned entity.
I just tested and this works on main with latest changes. There were a bunch of bug fixes recently so I assume this was fixed among them. Closing for now, please feel free to re-open if there's still an issue. Thanks!
I am still seeing this behaviour on 0.14 (with bevy 0.15.1). I have the same setup (a resource with a handle to an EffectAsset and spawning the effect multiple times at runtime). However the first effect is never visible.
I can reproduce the issue with the firework example on main. This is how it looks. The first burst is not right. If I were to use once instead of burst then I would only see the buggy one.
firework.mp4
In my game it seems like the first effect isn't spawning at all, however that is not the case (and I am assuming the same is true for the original bug report). The effect is indeed spawned, however the first burst is just buggy and not really visible, which leads to the conclusion it's not spawned (I changed the once to a burst and you can see that the first burst of the first effect is "missing").
Crate versions
bevy
version: 0.13.2bevy_hanabi
version: 0.10.0Describe the bug
When spawning an entity with a particle effect that is configured with
Spawner::once
andstarts_immediately
set totrue
, it does not emit any particles. However, it does happen the second time an entity of the exact same configuration is spawned.Expected behavior
The first time the entity is spawned with the above configuration, particles should emit.
To Reproduce
starts_immediately
set totrue
. This happens in aStartup
system.Update
system that runs if an event is received, aParticleEffectBundle
is spawned in a new entity, which references the effect asset created earlier.An minimal reproducable example of this happening can be shown here: https://github.com/Jaso333/hanabi-issue
Screenshots
N/A
The text was updated successfully, but these errors were encountered: