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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Lightmapping unity5 - Script Access

Discussion in 'Scripting' started by AviB, Feb 4, 2016.

  1. AviB

    AviB

    Joined:
    Jan 28, 2014
    Posts:
    22
    Hi,

    I'm having a lot of troubles trying to setting up a scene for baking lightmaps in batch mode.
    On unity 4, I could have set everything exists on the Editor window by a script.
    It seems that unity 5 api does not expose all the editor features related to GI & Light mapping.

    I'm trying to set two preset for baking (Low/High). How can I set it up by script?
    I found the object LightmapParameters, but I did not see a way to use it on the API ( Help please ).
    Also how can I use the object LightingDataAsset?
    1. Creating it?
    2. Can it help me store data for the batch bake?

    Any help would be great.
     
  2. AviB

    AviB

    Joined:
    Jan 28, 2014
    Posts:
    22
    bump