I'm using a NativeStream inside an IJobEntity and I keep getting the following error:
System.ArgumentException: Index {0} is out of restricted IJobParallelFor range [{1}...{2}] in NativeStream.
The NativeStream however has the [NativeDisableParallelForRestriction] attribute (and I have also tried the other attributes).
Not sure why this isn't working, as I have other jobs that do the exact same thing and work fine. Are there any edge-cases where safety cannot be disabled for some reason?
I also tried converting the job to an IJobChunk, but I get the same error. In both cases I open and close the for-each index on the unfilteredChunkIndex of the current chunk.