TryGetComponent
TryGetComponent(out Component)
Description
Get the value of the Component type.
Parameters
Parameter Name | Description |
---|---|
value | Value. |
Returns
Return true if the value can be obtained.
TryGetComponent<TComponent>(out TComponent)
public bool TryGetComponent<TComponent>(out TComponent value) ;
Description
Get the value of the Component type.
Type Parameters
Type Parameter Name | Description | Type Constraints |
---|---|---|
TComponent | Type of Component to get |
Parameters
Parameter Name | Description |
---|---|
value | The value you get. |
Returns
Returns true if it succeeds.