# TryGetRenderPipelineSettingsForPipeline

> Retrieves the settings object of type TSettings for the pipeline of type TPipeline if it is registered.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Rendering](/engine/6000.5/script-reference/unityeditor/rendering.md)
* **Assembly:** UnityEditor.CoreModule

## TryGetRenderPipelineSettingsForPipeline\<T, U>(T)

Retrieves the settings object of type `TSettings` for the pipeline of type `TPipeline` if it is registered.

```csharp
public static bool TryGetRenderPipelineSettingsForPipeline<TSettings, TPipeline>(out TSettings settings) where TSettings : class, IRenderPipelineGraphicsSettings where TPipeline : RenderPipeline
```

### Parameters

**** (T): The [IRenderPipelineGraphicsSettings](/engine/6000.5/script-reference/unityengine/rendering/irenderpipelinegraphicssettings.md) settings object if found, or `null`.

### Returns

| Type                                                          | Description                                                                                        |
| ------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if settings of type `TSettings` is available for registered for pipeline of type `TPipeline`. |

### Remarks

Note that it is not required that `TPipeline` is the currently active pipeline.

## TryGetRenderPipelineSettingsForPipeline\<T>(Type, T)

Retrieves the settings object of type `TSettings` for the pipeline of type `TPipeline` if it is registered.

```csharp
public static bool TryGetRenderPipelineSettingsForPipeline<TSettings>(Type renderPipelineType, out TSettings settings) where TSettings : class, IRenderPipelineGraphicsSettings
```

### Parameters

**** (\[Type]\(https\://learn.microsoft.com/dotnet/api/system.type)): A valid [RenderPipeline](/engine/6000.5/script-reference/unityengine/rendering/renderpipeline.md) type.**** (T): The [IRenderPipelineGraphicsSettings](/engine/6000.5/script-reference/unityengine/rendering/irenderpipelinegraphicssettings.md) settings object if found, or `null`.

### Returns

| Type                                                          | Description                                                                                        |
| ------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if settings of type `TSettings` is available for registered for pipeline of type `TPipeline`. |

### Remarks

Note that it is not required that `TPipeline` is the currently active pipeline.
