Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

LIghtmap help!

Discussion in 'Editor & General Support' started by PixelFrog, Oct 15, 2013.

  1. PixelFrog

    PixelFrog

    Joined:
    Dec 2, 2012
    Posts:
    8
    Hi,
    I've got scene with multiple object. I've bake lightmaps set for every object separately and one object shared (aways visible) for all sets. While baking i save all lightmap index and lightmapTilingOffset in xml files. Next when change objects visibility i load xml with lightmapsettings and bind to render. It's simple lightmap switching. Every thing work fine but problem is with shared object. It seems to overwrite UV every time scene is baked. How to fix this problem?
    Is mine approach to problem ok :)? I want switch some objects at runtime and load lightmaps for them. The scene is with building which model is switched and static environment.

    Best,
    Lukasz