SetShader
Set the shader of the material.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
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.