Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

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:
    190
    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:
    190
    bump
     
    samishca likes this.
unityunity