GetBuffer<T>(Entity)
Gets the dynamic buffer of an entity.
Read time 1 minuteLast updated a day ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public static DynamicBuffer<T> GetBuffer<T>(Entity entity) where T : unmanaged, IBufferElementData
Parameters
The entity.
Returns
Type | Description |
|---|---|
| DynamicBuffer<T> | The DynamicBuffer object for accessing the buffer contents. |
Remarks
This method gets replaced with component access methods through a cached BufferLookup<T>.
Not working in IJobEntity, and Utility methods