I would like it so when you press a button the skybox changes, I can get it to change but not to change back, here is the script
var sunny : Material;
var stars : Material;
function Update () {
if(Input.GetKeyDown(“q”)){
if(light.enabled == true)
light.enabled = false;
else
light.enabled = true;
RenderSettings.skybox = stars;
}
}