Function SimulatorBurst.LockSimulationDataReadOnly

LockSimulationDataReadOnly ()

Takes an async read-only lock on the simulation data.

Public
RWLock.ReadLockAsync LockSimulationDataReadOnly ()

Takes an async read-only lock on the simulation data.

This can be used to access simulationData, outputData, quadtree, and GetAgentNeighbourLookup in a job.

Use the ReadLockAsync.dependency field when you schedule the job using the simulation data, and then call ReadLockAsync.UnlockAfter with the job handle of that job.