#How can I lerp the intensity of a Spotlight 2D in Unty?
1 messages · Page 1 of 1 (latest)
This is the first time I'm trying it
I have looked for documentation and the small scripts I found doesn't work as well
check out this site
heres an example that you could use to lerp a single value
you'd just set the intensity w/ the new value at the end of the update loop
Thanks for the resource
no prob, good luck 🍀
My only problem is how can I access the specific Light 2D component
I have seen that they only referred as the 3D one
I wanna change the Color on a 2D-Light, but i can’t seem to figure out how to get the component. Because GetComponent with Light2D isn’t reconized as a thing, only Light works. And there is no documentation on 2D-Light yet. So I hope someone knows how to do it. This is a script stolen from Unity Documentation of Light: using System.Collect...