ドキュメント

Unity Engine

Download Unity

Unity Engine

GetSingletonBuffer<T>(bool)

Gets the value of a singleton buffer component.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
注意
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