Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TryGetRenderPipelineSettingsFromInterfaceForPipeline

Retrieves the array of the settings objects of type TSettingsInterfaceType for the pipeline of type TPipeline if they are registered.
Read time 1 minuteLast updated 10 days ago

Definition

TryGetRenderPipelineSettingsFromInterfaceForPipeline<T, U>(`<>[])

Retrieves the array of the settings objects of type
TSettingsInterfaceType
for the pipeline of type
TPipeline
if they are registered.
public static bool TryGetRenderPipelineSettingsFromInterfaceForPipeline<TSettingsInterfaceType, TPipeline>(out TSettingsInterfaceType[] settings) where TSettingsInterfaceType : class, IRenderPipelineGraphicsSettings where TPipeline : RenderPipeline

Parameters

The array of the settings objects of type
TSettingsInterfaceType
if found, or
null
.

Returns

Type

Description

boolTrue if any settings of type
TSettings
are available and registered for the pipeline of type
TPipeline
.

Remarks

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

TryGetRenderPipelineSettingsFromInterfaceForPipeline<T>(Type, `<>[])

Retrieves the array of the settings objects of type
TSettingsInterfaceType
for the pipeline of type
TPipeline
if they are registered.
public static bool TryGetRenderPipelineSettingsFromInterfaceForPipeline<TSettingsInterfaceType>(Type renderPipelineType, out TSettingsInterfaceType[] settings) where TSettingsInterfaceType : class, IRenderPipelineGraphicsSettings

Parameters

renderPipelineType

A valid RenderPipeline type.

The array of the settings objects of type
TSettingsInterfaceType
if found, or
null
.

Returns

Type

Description

boolTrue if any settings of type
TSettings
are available and registered for the pipeline of type
TPipeline
.

Remarks

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