Table of Contents | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
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.
Step 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.
Step 2
...
: Copy to the root of your project
The Unity web builder will only use templates stored in a “WebGL Templates” “WebGLTemplates” folder in the root Assets directory.
Create a folder named
...
“WebGLTemplates” (all one word, no spaces)
Move the “Motive 1” folder into it
...
Step 3
...
: Set the template in the build settings
In the Player Settings, select the “Motive 1” template:
...
Build & Upload
...
Build for WebGL Target
This will build your WebGL App into a local folder.
...
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”
Info |
---|
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.