Method TryGetComponent
TryGetComponent(Type, out TComponent)
Get a component value.
Declaration
public bool TryGetComponent(Type componentType, out TComponent value)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | componentType | The component type. |
| TComponent | value | The component value. |
Returns
| Type | Description |
|---|---|
| bool |
TryGetComponent<T>(out T)
Get a component value.
Declaration
public bool TryGetComponent<T>(out T value) where T : TComponent
Parameters
| Type | Name | Description |
|---|---|---|
| T | value | The component value. |
Returns
| Type | Description |
|---|---|
| bool |
Type Parameters
| Name | Description |
|---|---|
| T | The component type. |