Hey guys,
I am currently trying to get a script to work that randomly changes the light falloff, im pretty new to unity, so i might be missing an obvious solution here.
I tried it with this line of code:
light.falloffIntensity = falloffintensity
;
light is already set as the correct 2D light, im also changing the intensity in this script with falloff.intensity and that works just fine.
The error i am getting is this one:
The property UnityEngine.Experimental.Rendering.Universal.Lights2D.falloffIntensity has no setter.
I couldnt really find anything searching the web, maybe one of you can help.
Thank you!