- Home /
dim light as actor moves away
I have a scene that as the characters from a light source I want the range of the light source to shrink to darkness, as he get closer it gets brighter, is this possible?
Comment
Answer by DaveA · Aug 15, 2011 at 03:58 PM
Yes, you compute the distance from the character's position to the light's position and adjust the light's brightness accordingly. http://unity3d.com/support/documentation/ScriptReference/Light-intensity.html
Your answer
Follow this Question
Related Questions
[2D] Is it possible to create a collider for 2D lights? 0 Answers
2D Light question 1 Answer
how do i make lights flicker 2 Answers
How to make a GameObject not hittable by shadows ? 2 Answers
Do I still need lightmaps? 1 Answer