Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Bug WebGL build can't find the Caching library

Discussion in '2022.1 Beta' started by Protagonist, Feb 21, 2022.

  1. Protagonist

    Protagonist

    Joined:
    Dec 22, 2010
    Posts:
    27
    I'm having trouble building a WebGL version of my app. Whenever I try to build it, I get:

    Library/PackageCache/com.locus.bundlesystem@bc8d911dfd/Runtime/BundleManager.cs(191,22): error CS0103: The name 'Caching' does not exist in the current context


    I'm using Unity 2022.1.0b8 and https://github.com/locus84/Locus-Bundle-System. It compiles fine in the editor, and builds fine for the Windows and Mac platforms, but when I try to build for the WebGL platform, it can't find the Caching library (on both my Windows and Mac machines).

    It's weird, because I can reference the Caching API in my code, without it complaining.

    Any ideas? Thanks in advance.
     
  2. KamilCSPS

    KamilCSPS

    Joined:
    May 21, 2020
    Posts:
    448
    Didn't go far into the code but a clue would be that the bundle system has "using System.IO;".

    WebGL does not support System.IO.
     
  3. VirtualMaestro

    VirtualMaestro

    Joined:
    Jul 2, 2014
    Posts:
    22
    Have you solved the issue?
     
  4. Protagonist

    Protagonist

    Joined:
    Dec 22, 2010
    Posts:
    27
    No, but I haven't tried a WebGL build since this issue came up.