Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetCustomShader(BuiltinShaderType, Shader)

Set custom shader to use instead of a built-in shader.
Read time 1 minuteLast updated 9 days ago

Definition

public static void SetCustomShader(BuiltinShaderType type, Shader shader)

Parameters

Built-in shader type to set custom shader to.

shader

The shader to use.

Remarks

This is only used when built-in shader is set to BuiltinShaderMode.UseCustom mode; see GraphicsSettings.SetShaderMode.