TryGetRenderPipelineSettingsForPipeline
Retrieves the settings object of type TSettings for the pipeline of type TPipeline if it is registered.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Rendering
- Assembly: UnityEditor
TryGetRenderPipelineSettingsForPipeline<T, U>(T)
Retrieves the settings object of type for the pipeline of type if it is registered.
TSettingsTPipelinepublic static bool TryGetRenderPipelineSettingsForPipeline<TSettings, TPipeline>(out TSettings settings) where TSettings : class, IRenderPipelineGraphicsSettings where TPipeline : RenderPipeline
Parameters
The IRenderPipelineGraphicsSettings settings object if found, or .
nullReturns
Type | Description |
|---|---|
| bool | True if settings of type |
Remarks
Note that it is not required that is the currently active pipeline.
TPipelineTryGetRenderPipelineSettingsForPipeline<T>(Type, T)
Retrieves the settings object of type for the pipeline of type if it is registered.
TSettingsTPipelinepublic static bool TryGetRenderPipelineSettingsForPipeline<TSettings>(Type renderPipelineType, out TSettings settings) where TSettings : class, IRenderPipelineGraphicsSettings
Parameters
Returns
Type | Description |
|---|---|
| bool | True if settings of type |
Remarks
Note that it is not required that is the currently active pipeline.
TPipeline