Method GetGameObjectForEntity
GetGameObjectForEntity(EntityManager, Entity)
Lookup the presentation GameObject for a specific entity. The entity does not have a direct reference to the GameObject, it needs to go through this method to find it.
Declaration
public GameObject GetGameObjectForEntity(EntityManager entityManager, Entity ent)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityManager | entityManager | For looking up the entity |
| Entity | ent | Entity to find presentation GameObject for. |
Returns
| Type | Description |
|---|---|
| GameObject | GameObject for entity. |