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

Changing LightmapSettings.Lightmapdata in the editor

Discussion in 'Global Illumination' started by KB73, Jun 30, 2015.

  1. KB73

    KB73

    Joined:
    Feb 7, 2013
    Posts:
    234
    I have one scene, i light it fine. I create a copy of this scene, i copy the light maps, i open the new scene, change the LightmapSettings.lightmapdata to the new lightmaps, save the scene

    When i open the lighting window, the textures are still referencing the original lightmap textures, is there another way to do this, is it a bug?

    On 5.1.1p2, iOS
    cheers
     
  2. SpiriTx

    SpiriTx

    Graphics QA Unity Technologies

    Joined:
    Apr 12, 2012
    Posts:
    252
    Just Bake new scene. It will be near instant as all the required data is already in cache
     
  3. KB73

    KB73

    Joined:
    Feb 7, 2013
    Posts:
    234
    Hi Spirit, can't bake in this case, we want to preserve the original lightmaps, we're merging a bunch of geo and the output on a rebake will be different - so just want to redirect the atlas to the new one. Right now i can only do it at runtime, is there anyway of doing it when not in play mode. When i click on the lightmap it points to the wrong atlas.

    cheers