Hi,
I’m trying to create a button or an input key which allow me to switch between 2 texture for the same object.One is suppose to be the default gray shader, the other is a jpg texture.
I’ve tried this but it juste make my object dissapeard:
function Update (){
if (Input.GetKeyDown(KeyCode.Space)){
renderer.enable=!renderer.enabled;
}
}
Can someone help me please? thanks in advance