文档

Unity Engine

Unity Engine

TryGetFirstRenderPipelineSettingsFromInterface<TSettingsInterfaceType>(out TSettingsInterfaceType)

Get the first settings for the currently active pipeline that implements TSettingsInterfaceType.
阅读时间1 分钟最后更新于 1 个月前

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.