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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

SubScenes fail to load in wasm build

Discussion in 'Entity Component System' started by MarconiusDMM, Apr 16, 2020.

  1. MarconiusDMM

    MarconiusDMM

    Joined:
    Nov 24, 2017
    Posts:
    11
    I'm experimenting with DOTS, using the SubScene workflow. The thing works just fine in Editor, but I'm trying to make a WebGL (wasm) version: it builds just fine, but once I try to actually play, the screen shows an error and the SubScene doesn't load at all.
    I'm using http-server to run this locally, and the player itself and the main scene seems to load fine.

    Screen Shot 2020-04-16 at 18.53.30.png
    1) I'm not using LiveLink at all, so the first error is a bit of a mystery. Is there some way to turn OFF LiveLink so it doesn't try to look for it?
    2) The other messages seem to be the main issue. I have confirmed that the file mentioned in the error correctly exists, and if I directly enter it into the URL it actually works properly, so I don't think it's an issue with permissions either. Although it is possible there is some server setting I'm not aware of.

    Screen Shot 2020-04-16 at 18.56.34.png Screen Shot 2020-04-16 at 18.56.54.png

    I'm thinking it's likely something to do with my build settings, but I've tried pretty much every combination I could think of or find, and I'm kind of out of ideas.
    As a note, if I use similar settings for macOS build, it actually works fine; the first error about LiveLink does still display, but it doesn't seem to block anything.

    Anyone have any ideas? I literally could not any example projects or tutorials or anything that builds for WebGL...

    (And before anyone mentions Tiny: I am aware of it, but it's currently lacking too many things for my purposes. I have successfully done a WebGL build in it though, so I know that works.)
     
  2. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,655
    it will be fixed in future releases, it's known, just ignore it error for now (it's not affect any thing) :)
     
  3. MarconiusDMM

    MarconiusDMM

    Joined:
    Nov 24, 2017
    Posts:
    11
    Anyone have any ideas about the SubScene issue? Or is the recommendation to just use ConvertToEntity components for now, without using a SubScene.

    SubScene has also been giving me a lot of trouble with baked lighting, so I might just do that either way.
     
  4. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    3,648
    Many entities / packages don't support WebGL atm. You are pretty much reliant on tiny if that's what you're targeting atm.