Search Unity

  1. Are you interested in providing feedback directly to Unity teams? Sign up to become a member of Unity Pulse, our new product feedback and research community.
    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:
    177
    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:
    177
    bump
     
    samishca likes this.
unityunity