Method TryGetComponent
TryGetComponent(Type, out IBuildComponent)
Try to get the value of a component type. Throws if component type is not in UsedComponents list.
Declaration
public bool TryGetComponent(Type type, out IBuildComponent value)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The component type. |
IBuildComponent | value | The component value. |
Returns
Type | Description |
---|---|
bool |
TryGetComponent<T>(out T)
Try to get the value of a component type. Throws if component type is not in UsedComponents list.
Declaration
public bool TryGetComponent<T>(out T value) where T : IBuildComponent
Parameters
Type | Name | Description |
---|---|---|
T | value | The component value. |
Returns
Type | Description |
---|---|
bool |
Type Parameters
Name | Description |
---|---|
T | The component type. |