Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TryGetFirstRenderPipelineSettingsFromInterface<TSettingsInterfaceType>(out TSettingsInterfaceType)

Get the first settings for the currently active pipeline that implements TSettingsInterfaceType.
Read time 1 minuteLast updated 10 days ago

Definition

TryGetFirstRenderPipelineSettingsFromInterface<T>(T)

public static bool TryGetFirstRenderPipelineSettingsFromInterface<TSettingsInterfaceType>(out TSettingsInterfaceType settings) where TSettingsInterfaceType : class, IRenderPipelineGraphicsSettings

Parameters

settings

T
The settings object of type
TSettingsInterfaceType
if found, or
null
.

Returns

Type

Description

boolTrue if a setting implementing
TSettingsInterfaceType
was found, false otherwise.