34 lines
1.5 KiB
HTML
34 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en-us">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<title>Unity WebGL Player | GQ_TongXin</title>
|
|
</head>
|
|
<body style="text-align: center">
|
|
<canvas id="unity-canvas" width=1920 height=1080 style="width: 1920px; height: 1080px; background: #231F20"></canvas>
|
|
<script src="Build/build.loader.js"></script>
|
|
<script>
|
|
if (/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)) {
|
|
// Mobile device style: fill the whole browser client area with the game canvas:
|
|
var meta = document.createElement('meta');
|
|
meta.name = 'viewport';
|
|
meta.content = 'width=device-width, height=device-height, initial-scale=1.0, user-scalable=no, shrink-to-fit=yes';
|
|
document.getElementsByTagName('head')[0].appendChild(meta);
|
|
}
|
|
|
|
createUnityInstance(document.querySelector("#unity-canvas"), {
|
|
dataUrl: "Build/build.data.gz",
|
|
frameworkUrl: "Build/build.framework.js.gz",
|
|
codeUrl: "Build/build.wasm.gz",
|
|
streamingAssetsUrl: "StreamingAssets",
|
|
companyName: "DefaultCompany",
|
|
productName: "GQ_TongXin",
|
|
productVersion: "0.1",
|
|
// matchWebGLToCanvasSize: false, // Uncomment this to separately control WebGL canvas render size and DOM element size.
|
|
// devicePixelRatio: 1, // Uncomment this to override low DPI rendering on high DPI displays.
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|