WebGL Build

This commit is contained in:
max 2021-01-24 17:29:54 +01:00
commit 9fb4dfda83
7 changed files with 49 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,16 @@
{
"companyName": "MaxKruf",
"productName": "TextureCombiner",
"productVersion": "0.1",
"dataUrl": "TextureCombiner_WebGL.data.unityweb",
"wasmCodeUrl": "TextureCombiner_WebGL.wasm.code.unityweb",
"wasmFrameworkUrl": "TextureCombiner_WebGL.wasm.framework.unityweb",
"graphicsAPI": ["WebGL 2.0","WebGL 1.0"],
"webglContextAttributes": {"preserveDrawingBuffer": false},
"splashScreenStyle": "Dark",
"backgroundColor": "#000000",
"cacheControl": {"default": "must-revalidate"},
"developmentBuild": false,
"multithreading": false,
"unityVersion": "2019.4.10f1"
}

Binary file not shown.

Binary file not shown.

4
Build/UnityLoader.js Normal file

File diff suppressed because one or more lines are too long

2
TemplateData/style.css Normal file
View File

@ -0,0 +1,2 @@
.webgl-content * {border: 0; margin: 0; padding: 0}
.webgl-content {position: relative; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%);}

27
index.html Normal file
View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
* {
margin: 0;
padding: 0;
}
canvas {
width: 100%;
height: 100%;
position: absolute;
}
</style>
<title>TextureCombiner</title>
<script src="Build/UnityLoader.js"></script>
<script>
var gameInstance = UnityLoader.instantiate("gameContainer", "Build/TextureCombiner_WebGL.json");
</script>
</head>
<body>
<div id="gameContainer" style="width: 100vw; height: 100vh; margin: auto"></div>
</body>
</html>