Search Unity

Asset bundles WebGL Error + Shader creation failed

Discussion in 'Asset Bundles' started by Xenc, Aug 17, 2018.

  1. Xenc

    Xenc

    Joined:
    Feb 2, 2016
    Posts:
    13
    Hi,

    We started using asset bundles, but got stuck on a release breaking issue.
    In the editor and standalone build we can run the game without any issues. However in a Web GL build, the console window returns the following errors:

    UnityLoader.js:4
    UnityLoader.js:4 ERROR: 0:54: 'bitfieldInsert' : no matching overloaded function found
    UnityLoader.js:4 ERROR: 0:55: 'bitfieldInsert' : no matching overloaded function found
    UnityLoader.js:4
    UnityLoader.js:4 Note: Creation of internal variant of shader 'Vigor/2D/Opaque' failed.

    We have built the asset bundles (Build target: Web GL, no compression, copied to streaming assets) and placed our Web GL build on a server.
    At this moment, in our standalone build we use the asset bundles locally, meaning we use them from the Streaming assets folder and not downloaded from any server. This works fine. Though, could this be an issue for WebGL? Can we use the asset bundles from the Streaming Assets on a Web GL build, or are these errors caused by this?
    If this shouldn't be a problem, what could cause these errors?

    Kind regards,
    Carsten
     
  2. nsmith1024

    nsmith1024

    Joined:
    Mar 18, 2014
    Posts:
    870
    hello, i have same problem, using Unity 2018.2.14f1

    My asset bundles dont work when there is a terrain in there.

    Can anybody from UNITY address this. Its serious because terrains dont work and player falls thu the floor ending the game immediately in WebGL.

    Thanks