GetComponentCount(Entity)
Gets the number of component types associated with an entity.
阅读时间1 分钟最后更新于 19 天前
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public int GetComponentCount(Entity entity)
Parameters
The entity.
Returns
Type | Description |
|---|---|
| int | The number of components. |