Skip to content

Commit

Permalink
fixed compile option
Browse files Browse the repository at this point in the history
  • Loading branch information
EnoxSoftware committed Sep 24, 2023
1 parent b27a795 commit c0563ae
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 16 deletions.
Binary file not shown.
Binary file not shown.
3 changes: 0 additions & 3 deletions webgl_example/Build/Default WebGL-beta-Wasm.loader.js

This file was deleted.

Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions webgl_example/Build/markerbasedarexample.loader.js

Large diffs are not rendered by default.

Binary file not shown.

This file was deleted.

2 changes: 1 addition & 1 deletion webgl_example/TemplateData/style.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
body { padding: 0; margin: 0 }
#unity-container { position: absolute }
#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) }
#unity-container.unity-mobile { position: fixed; width: 100%; height: 100% }
#unity-container.unity-mobile { width: 100%; height: 100% }
#unity-canvas { background: #231F20 }
.unity-mobile #unity-canvas { width: 100%; height: 100% }
#unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none }
Expand Down
24 changes: 13 additions & 11 deletions webgl_example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Unity WebGL Player | 2022.1.20f1_Il2CPP_MarkerBasedARExample</title>
<title>Unity WebGL Player | MarkerBasedARExample1.2.5</title>
<link rel="shortcut icon" href="TemplateData/favicon.ico">
<link rel="stylesheet" href="TemplateData/style.css">
</head>
<body>
<div id="unity-container" class="unity-desktop">
<canvas id="unity-canvas" width=640 height=480></canvas>
<canvas id="unity-canvas" width=960 height=600></canvas>
<div id="unity-loading-bar">
<div id="unity-logo"></div>
<div id="unity-progress-bar-empty">
Expand All @@ -20,7 +20,7 @@
<div id="unity-footer">
<div id="unity-webgl-logo"></div>
<div id="unity-fullscreen-button"></div>
<div id="unity-build-title">2022.1.20f1_Il2CPP_MarkerBasedARExample</div>
<div id="unity-build-title">MarkerBasedARExample1.2.5</div>
</div>
</div>
<script>
Expand Down Expand Up @@ -56,15 +56,15 @@
}

var buildUrl = "Build";
var loaderUrl = buildUrl + "/Default WebGL-beta-Wasm.loader.js";
var loaderUrl = buildUrl + "/markerbasedarexample.loader.js";
var config = {
dataUrl: buildUrl + "/Default WebGL-beta-Wasm.data.unityweb",
frameworkUrl: buildUrl + "/Default WebGL-beta-Wasm.framework.js.unityweb",
codeUrl: buildUrl + "/Default WebGL-beta-Wasm.wasm.unityweb",
dataUrl: buildUrl + "/markerbasedarexample.data.unityweb",
frameworkUrl: buildUrl + "/markerbasedarexample.framework.js.unityweb",
codeUrl: buildUrl + "/markerbasedarexample.wasm.unityweb",
streamingAssetsUrl: "StreamingAssets",
companyName: "Enox Software",
productName: "2022.1.20f1_Il2CPP_MarkerBasedARExample",
productVersion: "1.2.4",
productName: "MarkerBasedARExample1.2.5",
productVersion: "1.2.5",
showBanner: unityShowBanner,
};

Expand All @@ -88,11 +88,13 @@
// To lower canvas resolution on mobile devices to gain some
// performance, uncomment the following line:
// config.devicePixelRatio = 1;

unityShowBanner('WebGL builds are not supported on mobile devices.');
} else {
// Desktop style: Render the game canvas in a window that can be maximized to fullscreen:

canvas.style.width = "640px";
canvas.style.height = "480px";
canvas.style.width = "960px";
canvas.style.height = "600px";
}

loadingBar.style.display = "block";
Expand Down

0 comments on commit c0563ae

Please sign in to comment.