Search Unity

Synchronous Lightmapping.BakeMultipleScenes

Discussion in 'Global Illumination' started by Gizmoi, Feb 13, 2018.

  1. Gizmoi

    Gizmoi

    Joined:
    Jan 9, 2013
    Posts:
    327
    Is there a synchronous version of Lightmapping.BakeMultipleScenes?

    I need to bake my lightmaps as part of a build system and I have no way of knowing when the bake process has finished.
     
  2. BonsaTech

    BonsaTech

    Joined:
    Dec 22, 2015
    Posts:
    73
  3. Gizmoi

    Gizmoi

    Joined:
    Jan 9, 2013
    Posts:
    327
    Doesn't this bake the scenes differently?

    And what do you mean by 'prebake operation'?
    Just a job in your build system or something Unity-side?

    EDIT: Also do you know if it's possible to bake lighting in batchmode? I couldn't get it to work.
     
    Last edited: Feb 19, 2018
  4. BonsaTech

    BonsaTech

    Joined:
    Dec 22, 2015
    Posts:
    73
    In our prebake operation, we enable some emissive materials. Nothing special.

    I assume that the bake could be done in batchmode, but this option haven´t been tested in my side. Sorry, dude.