Version: 5.3
public void SetShader (Shader shader);
public void SetShader (Shader newShader, bool registerUndo);

파라미터

shader Shader to set.
registerUndo Should undo be registered.

설명

Set the shader of the material.

Automatically handles internal inspector rebuilding.