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

파라미터

shaderShader to set.
registerUndoShould undo be registered.

설명

Set the shader of the material.

Automatically handles internal inspector rebuilding.