Legacy Documentation: Version 5.4
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

GraphicsSettings.SetCustomShader

public static void SetCustomShader(Rendering.BuiltinShaderType type, Shader shader);

Parameters

type Built-in shader type to set custom shader to.
shader The shader to use.

Description

Set custom shader to use instead of a built-in shader.

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

See Also: GetCustomShader, SetShaderMode, Graphics Settings.