ドキュメント

Unity Engine

Download Unity

Unity Engine

GetBuffer<T>(Entity, bool)

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

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public static DynamicBuffer<T> GetBuffer<T>(Entity entity, bool isReadOnly = false) where T : unmanaged, IBufferElementData

Parameters

entity

The entity.

isReadOnly

True if the buffer is only read, so writes to it aren't tracked as changes.

Returns

Type

Description

DynamicBuffer<T>The buffer.