GetComponentCount(Entity)
Gets the number of component types associated with an entity.
Read time 1 minuteLast updated 2 days ago
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. |