Search Unity

Question Shader stripping issue

Discussion in 'Addressables' started by pokruchin, Jun 21, 2021.

  1. pokruchin

    pokruchin

    Joined:
    Apr 24, 2019
    Posts:
    38
    Hello everybody!

    I have a lot of asset groups in my Addressables set up. I have one group that contains only shaders that I use in my project. I'm using only default URP shaders and fer shadergraphs and I added them into this group:

    upload_2021-6-21_22-6-29.png

    The problem is that it seems that Addressables builds all shader variants without stripping them. I considered so because when I profile my build it results in 335mb shaderlab size on Android device which is not normal:

    upload_2021-6-21_22-8-31.png

    In my graphics settings I use manual stripping but it seems that it doesn't affect anything:

    upload_2021-6-21_22-15-18.png

    I think that I'm missing something. Can anyone explain what is the proper way to add shaders to addressables? I'd very appreciate it!
     
    Last edited: Jun 21, 2021
  2. pokruchin

    pokruchin

    Joined:
    Apr 24, 2019
    Posts:
    38
  3. PerunCreative_JVasica

    PerunCreative_JVasica

    Joined:
    Aug 28, 2020
    Posts:
    47