Panic when using spawn command within Trigger<OnRemove> observer #15439
Labels
A-ECS
Entities, components, systems, and events
C-Bug
An unexpected or incorrect behavior
P-Crash
A sudden unexpected crash
S-Needs-Investigation
This issue requires detective work to figure out what's going wrong
Bevy version
0.14.2
What you did
Run this code:
What went wrong
App panicked.
I am noticing this behaviour only when Commands::spawn is issued within Trigger<OnRemove> observer. Commands::insert and Commands::add works correctly in this context.
Additional information
As a workaround I am spawning from dedicated Command instead of spawning directly.
The text was updated successfully, but these errors were encountered: