Method GetComponent
GetComponent(Type)
Get the value of a Type component.
Declaration
public TComponent GetComponent(Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | Type of the component. |
Returns
| Type | Description |
|---|---|
| TComponent |
GetComponent<T>()
Get the value of a T component.
Declaration
public T GetComponent<T>() where T : TComponent
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T | Type of the component. |