Documentation

Unity Engine

Download Unity

Unity Engine

UseCustom

Use custom shader instead of built-in one.
Read time 1 minuteLast updated 6 days ago

Definition

Warning
Deprecated. BuiltinShaderMode 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.
UseCustom = 2

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.
This is useful for implementing custom functionality. For example, by default deferred shading does shading calculations that match the Standard shader lighting model. But if you'd want to use a different BRDF, or use a custom deferred G-buffer layout, then you'd need to override BuiltinShaderType.DeferredShading with your own custom shader.