Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Create a runweb.cmd command file and with the following line. Note that the Unity version should align with a version installed on your system.

    Code Block
    "C:\Program Files\Unity\Hub\Editor\2020.3.40f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\SimpleWebServer.exe" %1 8000
  2. Run the webserver and point it at the folder with the web build. This will start the server on port 8000 (or whatever port you assigned in the command above).

    Code Block
    > runweb.cmd Builds/WebBuild
  3. Now launch a browser with security features disabled. For example, the following command launches Chrome with CORS and other security disabled so that the calls to the service will work. By default, the browser will not make connections or send authentication cookies to an unknown URL. Note that the directory specified in “user-data-dir” must exist on your system or this call will fail.

    Code Block
    "C:\Program Files\Google\Chrome\Application\chrome.exe" --disable-web-security --user-data-dir=C:\chromeTemp
  4. You should be able to launch the web build in this browser by connecting to localhost:8000. Log into Storyflow in another tab in this browser to get the correct cookies on your system.

Deploying to Launch

WebGL builds can be uploaded to Launch in the WebGL tab. You will point the upload to the base directory of your web build. Once uploaded, you can add WebGL builds to Modules so that they can be launched with a Launch Code.