Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Building WebGL

Using the Motive WebGL Template

The default Unity WebGL template does not work for content hosted on Motive Launch Server. Motive’s WebGL Template includes some changes that pass the security credentials and other parameters required into the WebGL app so that it runs properly.

1. Make a copy of the template folder

Select the Motive/Content/WebGLTemplates/Motive folder. Select Edit > Duplicate. This will make a “Motive 1” folder.

2. Copy to the root of your project

The Unity web builder will only use templates stored in a “WebGLTemplates” folder in the root Assets directory. Create a folder named “WebGLTemplates” (all one word, no spaces) and move the “Motive 1” folder into it.

3. Set the template in the build settings

In the Player Settings, select the “Motive 1” template:

Build & Upload

1. Build for WebGL Target

This will build your WebGL App into a local folder.

2. Upload to Launch

  • Create a WebGL Application

  • Create a version for the Application

    • Give the version a name

    • Click the upload button and select the root of the WebGL Application folder

    • Click “Create”

    • Note: you may need to refresh the screen to see your web app

Test

You can launch your uploaded app directly by clicking the Unity icon for the version you just uploaded in the WebGL page. This will load your app and connect you to Storyflow so that you can test your authored content directly on the web.

  • No labels