GetBufferRW<T>()
Gets the Buffer of T elements, an IBufferElementData, on the GameObject this Component is attached to for reading and writing.
Read time 1 minuteLast updated 6 hours ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public DynamicBuffer<T> GetBufferRW<T>() where T : unmanaged, IBufferElementData
Returns
Type | Description |
|---|---|
| DynamicBuffer<T> | The Buffer. |
Remarks
Same as GameObject.GetBufferRW on Component.gameObject.
Marks the Buffer as changed. Throws an if the GameObject has been destroyed or doesn't have the Buffer.
ArgumentExceptionWaits for the jobs that read or write to complete. To avoid the wait, access in a job through a . The job then runs after the jobs that read or write , instead of the main thread waiting for them.
TTUnity.Entities.BufferLookupT