移动端测试
This commit is contained in:
51
Assets/WebGLTemplates/RPMTemplate/index.html
Normal file
51
Assets/WebGLTemplates/RPMTemplate/index.html
Normal file
@ -0,0 +1,51 @@
|
||||
<!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 | {{{ PRODUCT_NAME }}}</title>
|
||||
<link rel="stylesheet" href="TemplateData/style.css">
|
||||
<link rel="shortcut icon" href="TemplateData/favicon.ico" />
|
||||
<style>
|
||||
#unity-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 0;
|
||||
padding-bottom: 56.25%; /* 16:9 aspect ratio */
|
||||
}
|
||||
|
||||
#unity-wrapper iframe,
|
||||
#unity-wrapper canvas {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="unity-wrapper">
|
||||
<div id="unity-container" class="unity-desktop">
|
||||
<div id="canvas-wrap">
|
||||
<div id="rpm-container">
|
||||
<iframe id="rpm-frame" class="rpm-frame" allow="camera *; microphone *"></iframe>
|
||||
<button id="rpm-hide-button" onclick="hideRpm()">Hide</button>
|
||||
</div>
|
||||
<canvas id="unity-canvas"></canvas>
|
||||
</div>
|
||||
<div id="unity-loading-bar">
|
||||
<div id="unity-logo"></div>
|
||||
<div id="unity-progress-bar-empty">
|
||||
<div id="unity-progress-bar-full"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="unity-warning"></div>
|
||||
<div id="unity-footer" style=""></div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="TemplateData/Global.js"></script>
|
||||
<script src="TemplateData/UnitySetup.js"></script>
|
||||
<script src="TemplateData/ReadyPlayerMeFrame.js"></script>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user