updated webgl template
This commit is contained in:
parent
9a801fc2fd
commit
1b23a13031
|
@ -70,3 +70,4 @@ crashlytics-build.properties
|
||||||
# Temporary auto-generated Android Assets
|
# Temporary auto-generated Android Assets
|
||||||
/[Aa]ssets/[Ss]treamingAssets/aa.meta
|
/[Aa]ssets/[Ss]treamingAssets/aa.meta
|
||||||
/[Aa]ssets/[Ss]treamingAssets/aa/*
|
/[Aa]ssets/[Ss]treamingAssets/aa/*
|
||||||
|
/debug.log
|
||||||
|
|
|
@ -67,7 +67,6 @@
|
||||||
|
|
||||||
if (/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)) {
|
if (/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)) {
|
||||||
container.className = "unity-mobile";
|
container.className = "unity-mobile";
|
||||||
config.devicePixelRatio = 1;
|
|
||||||
}
|
}
|
||||||
#if BACKGROUND_FILENAME
|
#if BACKGROUND_FILENAME
|
||||||
canvas.style.background = "url('" + buildUrl + "/{{{ BACKGROUND_FILENAME.replace(/'/g, '%27') }}}') center / cover";
|
canvas.style.background = "url('" + buildUrl + "/{{{ BACKGROUND_FILENAME.replace(/'/g, '%27') }}}') center / cover";
|
||||||
|
@ -75,6 +74,7 @@
|
||||||
loadingCover.style.display = "";
|
loadingCover.style.display = "";
|
||||||
|
|
||||||
const script = document.createElement("script");
|
const script = document.createElement("script");
|
||||||
|
var jsUnityInstance = null;
|
||||||
script.src = loaderUrl;
|
script.src = loaderUrl;
|
||||||
script.onload = () => {
|
script.onload = () => {
|
||||||
createUnityInstance(canvas, config, (progress) => {
|
createUnityInstance(canvas, config, (progress) => {
|
||||||
|
@ -82,6 +82,7 @@
|
||||||
progressBarEmpty.style.display = "";
|
progressBarEmpty.style.display = "";
|
||||||
progressBarFull.style.width = `${100 * progress}%`;
|
progressBarFull.style.width = `${100 * progress}%`;
|
||||||
}).then((unityInstance) => {
|
}).then((unityInstance) => {
|
||||||
|
jsUnityInstance = unityInstance;
|
||||||
loadingCover.style.display = "none";
|
loadingCover.style.display = "none";
|
||||||
if (canFullscreen) {
|
if (canFullscreen) {
|
||||||
if (!hideFullScreenButton) {
|
if (!hideFullScreenButton) {
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
[1008/232855.814:ERROR:check.cc(298)] Check failed: false. NOTREACHED log messages are omitted in official builds. Sorry!
|
|
||||||
[1008/232950.806:ERROR:check.cc(298)] Check failed: false. NOTREACHED log messages are omitted in official builds. Sorry!
|
|
||||||
[1008/234001.769:ERROR:check.cc(298)] Check failed: false. NOTREACHED log messages are omitted in official builds. Sorry!
|
|
||||||
[1009/000128.951:ERROR:check.cc(298)] Check failed: false. NOTREACHED log messages are omitted in official builds. Sorry!
|
|
||||||
[1009/000221.301:ERROR:check.cc(298)] Check failed: false. NOTREACHED log messages are omitted in official builds. Sorry!
|
|
||||||
[1009/001613.314:ERROR:check.cc(298)] Check failed: false. NOTREACHED log messages are omitted in official builds. Sorry!
|
|
||||||
[1009/002215.248:ERROR:check.cc(298)] Check failed: false. NOTREACHED log messages are omitted in official builds. Sorry!
|
|
||||||
[1009/002732.252:ERROR:check.cc(298)] Check failed: false. NOTREACHED log messages are omitted in official builds. Sorry!
|
|
Loading…
Reference in New Issue