Hello
i finded this variable for change a shader in a gameObject:
var someObj : GameObject;
private var shader1 = Shader.Find("Specular");
function Start(){
someObj.renderer.material.shader = shader1;
}
and is very usefull, but i want to re-use this script so i would like to be able to change the shader in the inspector on writing it manualy without need to change it in the script(because i tried to use “var shader1 : Shader;” and i can not put the basics shaders in…).
Does someone know if it’s possible to change manualy the shader in the inspector, in writing it for the best, and how to perform it?