文档

Unity Engine

Unity Engine

TryGetRenderPipelineSettingsFromInterface<TSettingsInterfaceType>(out TSettingsInterfaceType[])

Retrieves the array of the settings objects of type TSettingsInterfaceType for the active Render Pipeline if they are registered.
阅读时间1 分钟最后更新于 1 个月前

Definition

TryGetRenderPipelineSettingsFromInterface<T>(`<>[])

public static bool TryGetRenderPipelineSettingsFromInterface<TSettingsInterfaceType>(out TSettingsInterfaceType[] settings) where TSettingsInterfaceType : class, IRenderPipelineGraphicsSettings

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 for the active Render Pipeline.