You've already forked FateViewer
updated webgl template
This commit is contained in:
@@ -67,7 +67,6 @@
|
||||
|
||||
if (/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)) {
|
||||
container.className = "unity-mobile";
|
||||
config.devicePixelRatio = 1;
|
||||
}
|
||||
#if BACKGROUND_FILENAME
|
||||
canvas.style.background = "url('" + buildUrl + "/{{{ BACKGROUND_FILENAME.replace(/'/g, '%27') }}}') center / cover";
|
||||
@@ -75,6 +74,7 @@
|
||||
loadingCover.style.display = "";
|
||||
|
||||
const script = document.createElement("script");
|
||||
var jsUnityInstance = null;
|
||||
script.src = loaderUrl;
|
||||
script.onload = () => {
|
||||
createUnityInstance(canvas, config, (progress) => {
|
||||
@@ -82,6 +82,7 @@
|
||||
progressBarEmpty.style.display = "";
|
||||
progressBarFull.style.width = `${100 * progress}%`;
|
||||
}).then((unityInstance) => {
|
||||
jsUnityInstance = unityInstance;
|
||||
loadingCover.style.display = "none";
|
||||
if (canFullscreen) {
|
||||
if (!hideFullScreenButton) {
|
||||
|
||||
Reference in New Issue
Block a user