Closed Myrannas closed 2 years ago
Thanks for reporting this! It was actually a symptom of bigger problems with System.initialize
-- I forgot to keep it up to date as the rest of the project evolved. I borrowed your test (thanks!) and patched things up a bit in v0.8.4 (commit). System initialization will now enforce r/w masks from query declarations, but will no longer run initializations in parallel until I can do so safely, respecting scheduling constraints.
At the moment initialize functions are not run within a frame, so any entity created via
createEntity
is marked as invalid, and cannot be interacted with further. This first surfaced in0.8.2
with the new entity validity checking.A minimal case:
An example error:
I went ahead and created a test + PR for this, hope that's ok; happy to discuss the approach further :)