Documentation

Unity Engine


Unity Engine


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
Warning
Deprecated. Use SystemAPI.GetSingletonBuffer instead (RemovedAfter Entities 1.0)
public DynamicBuffer<T> GetSingletonBuffer<T>(bool isReadOnly = false) where T : unmanaged, IBufferElementData

Parameters

isReadOnly

True if the caller only requires read-only access to this data.

Returns

Type

Description

DynamicBuffer<T>The buffer.

Remarks

Additional Resources: EntityQuery.GetSingleton