Method TryGetSubclassOf
TryGetSubclassOf<T>(Type, out T)
Gets the VolumeComponent, which is a subclass of type, if
it exists.
Declaration
public bool TryGetSubclassOf<T>(Type type, out T component) where T : VolumeComponent
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | A type that inherits from VolumeComponent. |
| T | component | The output argument that contains the VolumeComponent
or |
Returns
| Type | Description |
|---|---|
| bool |
|
Type Parameters
| Name | Description |
|---|---|
| T | A type of VolumeComponent. |