How can I set a Light2D - PointLight's Z-Distance value through script?

I’d like to be able to randomize the “distance” (z-distance) on 2D PointLight when I instantiate it into the scene. The “pointLightDistance” variable only has ‘get’ not ‘set’ :frowning:

Thanks :slight_smile:

1 Like

bump

1 Like