#How can I lerp the intensity of a Spotlight 2D in Unty?

1 messages · Page 1 of 1 (latest)

dawn solar
#

I have been looking and trying for a way to modify a 2D light in unity, but nothing had worked

#

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

placid crown
#

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

dawn solar
#

Thanks for the resource

placid crown
#

no prob, good luck 🍀

dawn solar
#

My only problem is how can I access the specific Light 2D component

#

I have seen that they only referred as the 3D one

placid crown
#
dawn solar
#

I will take a deep look to this

#

Thanks

#

I will update you here if I achieved it or strugle!

dawn solar
#

Oh right

#

I was just using the wrong namespace JAJAJA

#

Here the result @placid crown just testing fot now