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

Bug Lit Shader is massive in addressables

Discussion in 'Addressables' started by Noxirus, Nov 4, 2022.

  1. Noxirus

    Noxirus

    Joined:
    Sep 18, 2019
    Posts:
    40
    Hello All,

    I have been working on a WebGL project for a while now and recently noticed that the size of my addressables are getting quite big. When going through the addressable build logs I dont see any large textures that could be causing this issue but the URP Lit Shader is massive! (Around 100mbs for one addressable scene).

    One error I am getting on the actual shader is: upload_2022-11-4_11-52-31.png

    I believe this is likely connected, but I am unsure how to approach this particular issue here.

    One possible idea I have explored is that I have too many textures in the addressable which is causing a bloat in the shader. Any advice on how to reduce this/update this?

    Any information would be greatly appreciated.

    -Noxirus
     
  2. fendercodes

    fendercodes

    Joined:
    Feb 4, 2019
    Posts:
    190
    I'm getting the same error as this when building my player. Did you resolve?