SetShader
Set the shader of the material.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
SetShader(Shader)
Set the shader of the material.
public void SetShader(Shader shader)
Parameters
Shader to set.
Remarks
Automatically handles internal inspector rebuilding.
SetShader(Shader, bool)
Set the shader of the material.
public void SetShader(Shader newShader, bool registerUndo)
Parameters
Remarks
Automatically handles internal inspector rebuilding.