Method GetComponentObject
GetComponentObject<T>(Entity)
Gets the managed UnityEngine.Component object from an entity.
Declaration
public T GetComponentObject<T>(Entity entity)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | The entity. |
Returns
Type | Description |
---|---|
T | The managed object, cast to type T. |
Type Parameters
Name | Description |
---|---|
T | The type of the managed object. |
GetComponentObject<T>(Entity, ComponentType)
Declaration
public T GetComponentObject<T>(Entity entity, ComponentType componentType)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | |
ComponentType | componentType |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |