| Parameter | Description |
|---|---|
| entity | The entity. |
DynamicBuffer<T> A DynamicBuffer<T0> type.
Gets the DynamicBuffer<T0> instance of type T for the specified entity.
Normally, you cannot write to buffers accessed using a BufferLookup instance
in a parallel Job. This restriction is in place because multiple threads could write to the same buffer,
leading to a race condition and nondeterministic results. However, when you are certain that your algorithm
cannot write to the same buffer from different threads, you can manually disable this safety check
by putting the [NativeDisableParallelForRestriction] attribute on the BufferLookup field in the Job.
[NativeDisableParallelForRestrictionAttribute]: https://docs.unity3d.com/ScriptReference/Unity.Collections.NativeDisableParallelForRestrictionAttribute.html