Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

TryGetRenderPipelineSettingsForPipeline<T, U>(T)

Retrieves the settings object of type
TSettings
for the pipeline of type
TPipeline
if it is registered.
public static bool TryGetRenderPipelineSettingsForPipeline<TSettings, TPipeline>(out TSettings settings) where TSettings : class, IRenderPipelineGraphicsSettings where TPipeline : RenderPipeline

Parameters

settings

T
The IRenderPipelineGraphicsSettings settings object if found, or
null
.

Returns

Type

Description

boolTrue 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.
public static bool TryGetRenderPipelineSettingsForPipeline<TSettings>(Type renderPipelineType, out TSettings settings) where TSettings : class, IRenderPipelineGraphicsSettings

Parameters

renderPipelineType

A valid RenderPipeline type.

settings

T
The IRenderPipelineGraphicsSettings settings object if found, or
null
.

Returns

Type

Description

boolTrue 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.