|
I am rather new to Unity, and I was wondering how to smoothly change the color of a light in the Update function. I have tried a few variations of code based on Color.Lerp, but whenever I would, my colors would shoot up to an extremely high number. I don't have that code on me, but it was along the lines of: colorA and colorB are your basic colors, and Update ranged from Time.time to Time.deltaTime mixed with other variables to try to get increment from 0 to 1. What can I do to get the colors to fade from one to the other?
(comments are locked)
|
|
Here's one approach. I haven't compiled the code so not sure if it contains spelling errors.
(comments are locked)
|
