ドキュメント

Unity Engine

Download Unity

Unity Engine

GetBuffer<T>(Entity, bool)

Gets the dynamic buffer of an entity.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
注意
Deprecated. Use SystemAPI.GetBuffer instead (RemovedAfter Entities 1.0)
public DynamicBuffer<T> GetBuffer<T>(Entity entity, bool isReadOnly = false) where T : unmanaged, IBufferElementData

Parameters

entity

The entity.

isReadOnly

Whether the buffer data is only read or is also written. Access data in a read-only fashion whenever possible.

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.