Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TryGetFirstSettingsImplementingInterface<TSettingsInterfaceType>(out TSettingsInterfaceType)

Try to get the first settings that implements TSettingsInterfaceType.
Read time 1 minuteLast updated 6 days ago

Definition

TryGetFirstSettingsImplementingInterface<T>(T)

protected bool TryGetFirstSettingsImplementingInterface<TSettingsInterfaceType>(out TSettingsInterfaceType settings) where TSettingsInterfaceType : class, IRenderPipelineGraphicsSettings

Parameters

settings

T
Get the first settings for the currently active pipeline that implements
TSettingsInterfaceType
, or
null
if none were found.

Returns

Type

Description

boolReturns true if a setting of type
TSettingsInterfaceType
were found, false otherwise.