HasBuffer<T>(Entity)
Checks whether an entity has a dynamic buffer of a specific type.
読み終わるまでの所要時間 1 分最終更新 9日前
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public static bool HasBuffer<T>(Entity entity) where T : struct, IBufferElementData
Parameters
The entity.
Returns
Type | Description |
|---|---|
| bool | True if the entity exists and has the buffer. |