SetShader
Set the shader of the material.
읽는 시간 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.