Documentation

Unity Engine

Download Unity

Unity Engine

GetCustomShader(BuiltinShaderType)

Get custom shader used instead of a built-in shader.
Read time 1 minuteLast updated 6 days ago

Definition

Warning
Deprecated. GraphicsSettings.GetCustomShader 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 Shader GetCustomShader(BuiltinShaderType type)

Parameters

Built-in shader type to query custom shader for.

Returns

Type

Description

ShaderThe shader used.

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.