light.intensity is obsolete

Heya!

So does anyone happen to know what should I use if .intensity is obsolete? I used light.intensity and Unity said that it’s obsolete and I should make backup before continuing. And it seams that light.color is obsolete too. Does this have something to do with “light”?

thanks.

Unity didn’t say that light.intensity or light.color were obsolete. It said that UnityEngine.Component.light was obsolete, and not to use the light property, but GetComponent instead. In fact, Unity told you exactly what to do, with the exact code you needed. Reading = winning! :wink: