Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RegisterShader(Shader)

Register a user created shader.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static void RegisterShader(Shader shader)

Parameters

shader

Remarks

Register a Shader created with ShaderUtil.CreateShaderAsset with Unity. This is required if you wish your shader to exist when calling Shader.Find and the material inspector shader menu.