Entity manager invalidation of arrays

this is noted in : Entity Command Buffer | Package Manager UI website

“”““When you access the EntityManager (to say, create an entity) you invalidate all injected arrays and EntityQuery objects.””“”“”""What does that mean can you provide an example?How can i inject things into entity manager?

ComponentDataFromEntity, BufferFromEntity etc. They will be deallocated if you get them before structural changes (for example create new entity) and trying to acces after structural changes.

1 Like