- Home /
Script flares onto lights?
I'm creating a light source via a script, which also determines its intensity, colour, type and all. Now I'd like to also give it a flare (and maybe a halo, because why not).
Can anyone tell me how to assign a flare to a light purely via a C# script, and no fiddling with the editor?
I haven't yet been able to make it work, so thanks for any help!
Answer by DaveA · Sep 03, 2013 at 06:38 PM
The code is right there: http://docs.unity3d.com/Documentation/ScriptReference/Light-flare.html
I'm very sorry, but as far as I can see this still requires the user to specify a particular flare in the editor. $$anonymous$$aybe I was imprecise in my description of the problem: The flare needs to be attached to the light purely through code, without using the editor.
Your answer
Follow this Question
Related Questions
Variable has not been assigned error 2 Answers
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Distribute terrain in zones 3 Answers
Flashlight turning off, but not back on again? 4 Answers
Multiple Cars not working 1 Answer