Documentation

Unity Engine

Download Unity

Unity Engine

GetShaderMode(BuiltinShaderType)

Get built-in shader mode.
Read time 1 minuteLast updated 6 days ago

Definition

Warning
Deprecated. GraphicsSettings.GetShaderMode is deprecated and will be removed in a future release. It's used only by the Built-In Render Pipeline, which is no longer supported. The Universal Render Pipeline (URP) doesn't use built-in shader settings.
public static BuiltinShaderMode GetShaderMode(BuiltinShaderType type)

Parameters

Built-in shader type to query.

Returns

Type

Description

BuiltinShaderModeMode used for built-in shader.

Remarks

Important: This API is compatible only with the Built-In Render Pipeline, which is no longer supported. For more information on migrating to URP, refer to Migrating from the Built-In Render Pipeline to URP.