- Home /
Toggle built in lighting in script
How could I toggle off the build in lighting while moving around in the scene view, then once the scene view is fixed toggle them back on.
Answer by robertbu · May 21, 2014 at 06:27 PM
I think you are talking about ambient light. If so:
http://docs.unity3d.com/Documentation/ScriptReference/RenderSettings-ambientLight.html
Setting it to Color.black will turn the lights out. If you save the setting before you turn it black, you can then restore it.
Cool, I was wondering why I couldnt get pure dark spots. Anyways I am talking about the light toggle button
Your answer
Follow this Question
Related Questions
Reloading the scene causes ads to reload. Is this ok ? 3 Answers
lighting click help 3 Answers
Can someone help me fix my Javascript for Flickering Light? 6 Answers
Lighting Baking crashing on full scene 2 Answers
A node in a childnode? 1 Answer