Change skybox color from script

I have to change skybox color from script, so I want to write a function to do the following works (in pseudo-code):

function ChangeColor(var color) //run each 30 seconds
{
skybox.color = color;

}

I don’t know how to write the actual code. Can you help me with this. Thank you very much :smile:

Hello!

this script changes the skybox when the user presses a button, this might help you out!
http://forum.unity3d.com//files/skyswap_904.js (made by Andeeee) :wink:

this script doesn’t solve my problem, but it helped me a lot. Thank you :smile: