Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

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

Discussion in '2D Experimental Preview' started by Jamez0r, May 18, 2020.

  1. Jamez0r

    Jamez0r

    Joined:
    Jul 29, 2019
    Posts:
    205
    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' :(

    Thanks :)
     
    samishca likes this.
  2. Jamez0r

    Jamez0r

    Joined:
    Jul 29, 2019
    Posts:
    205
    bump
     
    samishca likes this.