Search Unity

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

  2. Unity 2022.1 is now available as the latest Tech release.
    Dismiss Notice
  3. Improve your project's performance with our new guide on profiling in Unity.
    Dismiss Notice

LightingData data access?

Discussion in 'Global Illumination' started by kebrus, Mar 6, 2019.

  1. kebrus


    Oct 10, 2011
    A lot of useful information is stored in the LightingData asset file. However this file is almost a blackbox with only a few things accessible to us. I'd like to return and change the light probes data. I can change the SH coefficients easily and I managed to change their position with a lot of hops because the position only has a getter and not a setter. But changing the probe occlusion seems to be impossible, I'm required to let unity decide for me what to put in there but this means I can't, for example, determined what lights actually affect the baking process of probes since not even culling masks filter it. So i'm at a loss here.

    Do we need to reverse engineer lightingdata asset file just to change some references and values around? Why can't we have some access to do the data it generates? (unity 2018.2/3)
  2. uy3d


    Unity Technologies

    Aug 16, 2016
    You can get some more details about the whys of the LDA here