I'm running into an issue with the following code
fn system(...) {
if let Ok(mut cmd) = commands.get_entity(e) {
cmd.trigger(SomeEvent);
}
}
When this system is running on Update schedule, it works fine without any issues. However when I start using this under the FixedUpdate schedule, sometimes it run into Entity not found error and panic the app. This seems to happen randomly.
I thought the .get_entity function already does the check of making sure entity is there. Why does this behave differently between Update and FixedUpdate schedules.