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
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  3. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    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:
    206
    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:
    206
    bump
     
    samishca likes this.