Search Unity

Shader Variants are being stripped if build them not together with scene

Discussion in 'Asset Bundles' started by Serhii-Horun, Jan 29, 2021.

  1. Serhii-Horun

    Serhii-Horun

    Joined:
    Apr 12, 2015
    Posts:
    122
    Case1: build scene in single asset bundle.
    Result: all is fine, asset bundle 11 MB

    Case2: build scene in 1 bundle, and shaders(+svc tracked from the scene) in another.
    Result: 2 bundles together are 8 MB. On scene loading we can see artefacts.

    How to prevent such result? Is that Unity bug?
     
  2. Serhii-Horun

    Serhii-Horun

    Joined:
    Apr 12, 2015
    Posts:
    122
    Sorry, my fault. I've missed svc in my shader bundle. It prevents stripping fine
     
unityunity