Skip to content

Commit

Permalink
gzip圧縮を無効にして再挑戦
Browse files Browse the repository at this point in the history
  • Loading branch information
whiteflare committed Dec 27, 2023
1 parent 069195b commit 8fbc3d5
Show file tree
Hide file tree
Showing 20 changed files with 69 additions and 3 deletions.
4 changes: 4 additions & 0 deletions docs/Build/UnityLoader.js

Large diffs are not rendered by default.

Binary file added docs/Build/WebGL.data
Binary file not shown.
Binary file removed docs/Build/WebGL.data.gz
Binary file not shown.
Binary file added docs/Build/WebGL.data.unityweb
Binary file not shown.
22 changes: 22 additions & 0 deletions docs/Build/WebGL.framework.js

Large diffs are not rendered by default.

Binary file removed docs/Build/WebGL.framework.js.gz
Binary file not shown.
16 changes: 16 additions & 0 deletions docs/Build/WebGL.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"companyName": "DefaultCompany",
"productName": "UnToonWebGL",
"productVersion": "0.1",
"dataUrl": "WebGL.data.unityweb",
"wasmCodeUrl": "WebGL.wasm.code.unityweb",
"wasmFrameworkUrl": "WebGL.wasm.framework.unityweb",
"graphicsAPI": ["WebGL 2.0"],
"webglContextAttributes": {"preserveDrawingBuffer": false},
"splashScreenStyle": "Dark",
"backgroundColor": "#231F20",
"cacheControl": {"default": "must-revalidate"},
"developmentBuild": false,
"multithreading": false,
"unityVersion": "2019.4.31f1"
}
Binary file added docs/Build/WebGL.wasm
Binary file not shown.
Binary file added docs/Build/WebGL.wasm.code.unityweb
Binary file not shown.
Binary file added docs/Build/WebGL.wasm.framework.unityweb
Binary file not shown.
Binary file removed docs/Build/WebGL.wasm.gz
Binary file not shown.
24 changes: 24 additions & 0 deletions docs/TemplateData/UnityProgress.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
function UnityProgress(unityInstance, progress) {
if (!unityInstance.Module)
return;
if (!unityInstance.logo) {
unityInstance.logo = document.createElement("div");
unityInstance.logo.className = "logo " + unityInstance.Module.splashScreenStyle;
unityInstance.container.appendChild(unityInstance.logo);
}
if (!unityInstance.progress) {
unityInstance.progress = document.createElement("div");
unityInstance.progress.className = "progress " + unityInstance.Module.splashScreenStyle;
unityInstance.progress.empty = document.createElement("div");
unityInstance.progress.empty.className = "empty";
unityInstance.progress.appendChild(unityInstance.progress.empty);
unityInstance.progress.full = document.createElement("div");
unityInstance.progress.full.className = "full";
unityInstance.progress.appendChild(unityInstance.progress.full);
unityInstance.container.appendChild(unityInstance.progress);
}
unityInstance.progress.full.style.width = (100 * progress) + "%";
unityInstance.progress.empty.style.width = (100 * (1 - progress)) + "%";
if (progress == 1)
unityInstance.logo.style.display = unityInstance.progress.style.display = "none";
}
Binary file added docs/TemplateData/fullscreen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/TemplateData/progressEmpty.Dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/TemplateData/progressEmpty.Light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/TemplateData/progressFull.Dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/TemplateData/progressFull.Light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/TemplateData/progressLogo.Dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/TemplateData/progressLogo.Light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@
var buildUrl = "Build";
var loaderUrl = buildUrl + "/WebGL.loader.js";
var config = {
dataUrl: buildUrl + "/WebGL.data.gz",
frameworkUrl: buildUrl + "/WebGL.framework.js.gz",
codeUrl: buildUrl + "/WebGL.wasm.gz",
dataUrl: buildUrl + "/WebGL.data",
frameworkUrl: buildUrl + "/WebGL.framework.js",
codeUrl: buildUrl + "/WebGL.wasm",
streamingAssetsUrl: "StreamingAssets",
companyName: "DefaultCompany",
productName: "UnToonWebGL",
Expand Down

0 comments on commit 8fbc3d5

Please sign in to comment.