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.
  2. Dismiss Notice

Question How to shift all light probes in scene

Discussion in 'General Graphics' started by joshuacwilde, Dec 10, 2020.

  1. joshuacwilde

    joshuacwilde

    Joined:
    Feb 4, 2018
    Posts:
    691
    I am trying to move all objects in a scene to keep the player camera near the origin (0,0,0). The problem is that I don't know how to change the light probe positions. I imagine this should be like one line of code in the unity source somewhere. I just need to shift all the light probes in the entire scene. I don't need to recalculate any positions or anything, just shift them all. Any ideas?

    Any help would be much appreciated!
     
  2. BrandyStarbrite

    BrandyStarbrite

    Joined:
    Aug 4, 2013
    Posts:
    2,067
    So you want to do this by writing code?
    I would have given you some code, but I consider myself a noob coder.
     
  3. joshuacwilde

    joshuacwilde

    Joined:
    Feb 4, 2018
    Posts:
    691
    Yeah in code