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. Dismiss Notice

Baked lighting with Addressables

Discussion in 'Addressables' started by cado82, Sep 28, 2021.

  1. cado82

    cado82

    Joined:
    Jul 29, 2020
    Posts:
    25
    Is it possible to move the baked lightmap textures into an addressable bundle and out of the player build? I tried marking the textures as addressable but then they are duplicated in the scene when I check the analyzer. I can't find any mention of this use case but I imagine it is quite common.
     
  2. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,444
    Yes, it's possible. You need to create a separate AssetGroup and store the Lightmaps there. Here is how the setup looks like for one of the levels in my game:

    upload_2021-9-28_16-53-26.png
     
  3. cado82

    cado82

    Joined:
    Jul 29, 2020
    Posts:
    25
    Thanks, that's good to know it's possible and I just need to do some tinkering with my groups. How did you get the nested groups in your screenshot? I can't find a way to do that.
     
  4. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,444
    It depends on the Addressables version, they moved the setting recently. It's either in the AddressableAssetSettings asset or in the Addressables Groups Tools menu. More.
     
    cado82 likes this.