Hi all! I'm a newcomer to DOTS and ECS and I'm running into a problem, and I was wondering if anyone here might have any advice?
Is it possible to gain read-write access to a DynamicBuffer during a parallel job without passing it in as a parameter? I have a parent entity that the job operates on, but during the logic, I need to alter a DynamicBuffer belonging to a child entity of that parent.
Unity's built-in safety systems are preventing me from using a BufferLookup with read-write permission in a parallel job to prevent multiple threads from trying to write to the buffer simultaneously, but I believe that each individual child's DynamicBuffer will only be accessed once, so unless I'm mistaken there shouldn't be a risk of that happening.
I'm unfamiliar with other ways to access a DynamicBuffer of a different entity other than a BufferLookup, and my attempts at searching and asking so far have not led me to figuring out how to remedy this or work around it. Any assistance is appreciated!