I got this error when trying to read NativeParallelMultiHashMap from another system.
InvalidOperationException: The previously scheduled job UnitSpatialSystem:IndexJob writes to the Unity.Collections.NativeParallelMultiHashMap2[System.Int32,System.Int32] IndexJob.JobData.Map. You are trying to schedule a new job UnitScanSystem:ScanJob, which reads from the same Unity.Collections.NativeParallelMultiHashMap2[System.Int32,System.Int32] (via ScanJob.JobData.Spatial.MMap). To guarantee safety, you must include UnitSpatialSystem:IndexJob as a dependency of the newly scheduled job.
Is there a way to schedule an IJobEntity after another one, even if they are in different systems?