기술 자료

Unity Engine

Unity Engine

SetCustomShader(BuiltinShaderType, Shader)

Set custom shader to use instead of a built-in shader.
읽는 시간 1분최근 업데이트: 한 달 전

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.