var dayBox1:Material;
function Update(){
RenderSettings.skybox=dayBox1;
}
I assigned the dayBox1 variable in the inspector, but for some reason the sky will always appear the default blue color. I also have assigned this script to an object in the scene. How can I make this work?