How can I use code to control the parameters of Lighting/Scene/Fog

When I use the Unity5.0, I want to set the parameters of Fog in Window/Lighting Panel, Where should I put the codes?, thanks!
2132288--140402--QQ图片20150528202716.png

This is what you’re searching for:

I see, Thanks a lot!

I wonder if there is any Video Tutorials to show how to use RenderSettings.