SetShader
Set the shader of the material.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
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.