Method TryGet
TryGet<T>(out T)
Gets the VolumeComponent of the specified type, if it exists.
Declaration
public bool TryGet<T>(out T component) where T : VolumeComponent
Parameters
| Type | Name | Description | 
|---|---|---|
| T | component | The output argument that contains the VolumeComponent
or   | 
    
Returns
| Type | Description | 
|---|---|
| bool | 
  | 
    
Type Parameters
| Name | Description | 
|---|---|
| T | A type of VolumeComponent.  | 
    
See Also
TryGet<T>(Type, out T)
Gets the VolumeComponent of the specified type, if it exists.
Declaration
public bool TryGet<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  |