Skip to content

Commit 687915d

Browse files
committed
[Unity WebGL] Web build added to docs folder to deploy on github pages
1 parent 016351b commit 687915d

17 files changed

+87
-0
lines changed

docs/Build/UnityLoader.js

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/Build/WebGL.data.unityweb

985 KB
Binary file not shown.

docs/Build/WebGL.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"companyName": "DefaultCompany",
3+
"productName": "Procedural.Terrain",
4+
"productVersion": "0.1",
5+
"dataUrl": "WebGL.data.unityweb",
6+
"wasmCodeUrl": "WebGL.wasm.code.unityweb",
7+
"wasmFrameworkUrl": "WebGL.wasm.framework.unityweb",
8+
"graphicsAPI": ["WebGL 2.0","WebGL 1.0"],
9+
"webglContextAttributes": {"preserveDrawingBuffer": false},
10+
"splashScreenStyle": "Dark",
11+
"backgroundColor": "#231F20",
12+
"cacheControl": {"default": "must-revalidate"},
13+
"developmentBuild": false,
14+
"multithreading": false,
15+
"unityVersion": "2019.3.7f1"
16+
}
3.05 MB
Binary file not shown.
78.3 KB
Binary file not shown.

docs/TemplateData/UnityProgress.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
function UnityProgress(unityInstance, progress) {
2+
if (!unityInstance.Module)
3+
return;
4+
if (!unityInstance.logo) {
5+
unityInstance.logo = document.createElement("div");
6+
unityInstance.logo.className = "logo " + unityInstance.Module.splashScreenStyle;
7+
unityInstance.container.appendChild(unityInstance.logo);
8+
}
9+
if (!unityInstance.progress) {
10+
unityInstance.progress = document.createElement("div");
11+
unityInstance.progress.className = "progress " + unityInstance.Module.splashScreenStyle;
12+
unityInstance.progress.empty = document.createElement("div");
13+
unityInstance.progress.empty.className = "empty";
14+
unityInstance.progress.appendChild(unityInstance.progress.empty);
15+
unityInstance.progress.full = document.createElement("div");
16+
unityInstance.progress.full.className = "full";
17+
unityInstance.progress.appendChild(unityInstance.progress.full);
18+
unityInstance.container.appendChild(unityInstance.progress);
19+
}
20+
unityInstance.progress.full.style.width = (100 * progress) + "%";
21+
unityInstance.progress.empty.style.width = (100 * (1 - progress)) + "%";
22+
if (progress == 1)
23+
unityInstance.logo.style.display = unityInstance.progress.style.display = "none";
24+
}

docs/TemplateData/favicon.ico

13 KB
Binary file not shown.

docs/TemplateData/fullscreen.png

345 Bytes
Loading
155 Bytes
Loading
159 Bytes
Loading

0 commit comments

Comments
 (0)