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