|
I want an object to "light up" a certain color when the player collides/bumps into it. The object will fade back to the original color after a certain period of time. What would be an ideal way to achieve this? Thank You
(comments are locked)
|
|
I'd use the Fade script on the wiki, and something like this:
You might need additional code depending on what you're doing exactly.
(comments are locked)
|
|
you can use material.color property and Color.Lerp method to smoothly change the color of your object.
(comments are locked)
|
