Method GetPrimaryEntity
GetPrimaryEntity(UnityEngine.Object)
Returns the primary entity associated with the given object. This entity is from the destination world.
Declaration
public Entity GetPrimaryEntity(UnityEngine.Object uobject)
Parameters
| Type | Name | Description | 
|---|---|---|
| UnityEngine.Object | uobject | The object to get the primary entity for.  | 
Returns
| Type | Description | 
|---|---|
| Entity | The primary entity associated with the given entity. This is the null entity if there is no primary entity for the object.  | 
GetPrimaryEntity(UnityEngine.Component)
Returns the primary entity associated with the given GameObject of the given component. This entity is from the destination world.
Declaration
public Entity GetPrimaryEntity(UnityEngine.Component component)
Parameters
| Type | Name | Description | 
|---|---|---|
| UnityEngine.Component | component | The component for whose GameObject to get the primary entity for.  | 
Returns
| Type | Description | 
|---|---|
| Entity | The primary entity associated with the given entity. This is the null entity if there is no primary entity for the object.  |