GetSingletonBuffer<T>(bool)
Gets the value of a singleton buffer component.
Read time 1 minuteLast updated a day ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public DynamicBuffer<T> GetSingletonBuffer<T>(bool isReadOnly = false) where T : unmanaged, IBufferElementData
Parameters
True if the caller only requires read-only access to this data.
Returns
Type | Description |
|---|---|
| DynamicBuffer<T> | The buffer. |
Remarks
Additional Resources: EntityQuery.GetSingleton