GetBuffer<T>(Entity, bool)
Gets the dynamic buffer of an entity.
阅读时间1 分钟最后更新于 19 天前
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public DynamicBuffer<T> GetBuffer<T>(Entity entity, bool isReadOnly = false) where T : unmanaged, IBufferElementData
Parameters
Returns
Type | Description |
|---|---|
| DynamicBuffer<T> | The DynamicBuffer object for accessing the buffer contents. |
Remarks
When you call this method on the main thread, it invokes EntityManager.GetBuffer.