unity3d material set マテリアル 動的に変更

var theMaterial : Material;
...
renderer.material = theMaterial;