#Trigger-Handling works but InvalidOperation in NativeStream

1 messages · Page 1 of 1 (latest)

hazy cobalt
#

I make damge zones of various kinds in my game and I want enemies to be damaged when they are in the zone. Everything in ECS.

Stop me if anything is too complicated.

So I made a System and the game runs fine, but I get lots of errors. I will attach the script and the errors in the thread

astral bronze
#

I think you forgot to do what this comment says
// Ensure you complete the physics simulation jobs before accessing TriggerEvents.
So you probably just want to EntityManager.CompleteDependencyBeforeRO<SimulationSingleton>() before using it