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

Issues getting web assembly running

Discussion in 'Project Tiny' started by MFC_kersten, Jul 24, 2020.

  1. MFC_kersten

    MFC_kersten

    Joined:
    Mar 11, 2019
    Posts:
    10
    Hey there,

    So i'm trying to get a web build up and running following the setup tutorial on: https://docs.google.com/document/d/1A8hen2hLFY5FLkC5gd3JP2Z-IpHfnAX-CpYLK3aOdwA/edit#

    After setting up my project exactly like mentioned in the tutorial i get the following error screen shown in my browser: WASM-build-result.png

    Is there an obvious step i'm missing here? any help would be greatly appreciated.

    My build config looks like this btw:
    buildConfig-screenshot.png

    I did see mentioned in the documentation: "On the Web, you will have to manually spin up a web server to launch your build", having no prior experience with web, could this be the issue and if so then how would i go about this?

    Cheers,
    Merijn
     
  2. MFC_kersten

    MFC_kersten

    Joined:
    Mar 11, 2019
    Posts:
    10
    To elaborate on my set up a bit, i'm using:
    - Unity 2019.4.4f1
    - Project tiny full preview.14 - 0.26.0
    - The project is a URP project
     
  3. Ted_Wikman

    Ted_Wikman

    Unity Technologies

    Joined:
    Oct 7, 2019
    Posts:
    916
    Hello @demerijnkersten,
    So to test out the web builds, you do need a local/remote web server. In future versions of Project Tiny, this will be automatically handled by Unity.
    To run a local web server, you can follow this step by step guide by Mozilla. Scroll down to
    Running a simple local HTTP server and follow the steps.

    Once you got it all running, let us know if you continue having issues.
     
    Seaqqull and NotaNaN like this.
  4. MFC_kersten

    MFC_kersten

    Joined:
    Mar 11, 2019
    Posts:
    10
    Thanks for the Response!
    This will be a first for me but i'll try to get it working, the guide will definitely help me along here.
     
    Ted_Wikman likes this.
  5. MFC_kersten

    MFC_kersten

    Joined:
    Mar 11, 2019
    Posts:
    10
    Update: Got a local webserver running the project, thanks again :)
     
  6. Ted_Wikman

    Ted_Wikman

    Unity Technologies

    Joined:
    Oct 7, 2019
    Posts:
    916
    Awesome! Happy to hear