It seems that is not possible to use the EntityCommandBuffer from a ComponentSystem OnUpdate function. Is that right? If so why? I see an EntityCommandBuffer as a way to defer the execution of commands, so why shouldn’t I be able to do so from the mainthread too?
you use PostUpdateCommands instead
1 Like
PostUpdateCommands is just an ECB with a predictable life cycle tied to the way ComponentSystem updates.
You can also manually playback an ECB on the main thread if you know what you’re doing.
1 Like