Quantcast
Channel: Answers by "Graham-Dunnett"
Viewing all articles
Browse latest Browse all 959

Answer by Graham Dunnett

$
0
0
What's hard about 1. Visit the [scripting reference][1] 2. Click runtime classes in the menu bar on the left 3. In your browser do a search for "light" 4. Follow the link to get to http://docs.unity3d.com/Documentation/ScriptReference/Light.html 5. Click on "[color][2]" to get a small code example that shows how you can change the light colour. 6. Ditto "[spotAngle][3]". 7. Scroll down the Light page a little to see the `enabled` property, which turns the light on and off. [1]: http://docs.unity3d.com/Documentation/ScriptReference/index.html [2]: http://docs.unity3d.com/Documentation/ScriptReference/Light-color.html [3]: http://docs.unity3d.com/Documentation/ScriptReference/Light-spotAngle.html

Viewing all articles
Browse latest Browse all 959

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>