negitamago
1/16/2019 - 4:39 AM

WebGLテンプレート用の index.html のサンプル http://negi-lab.blog.jp/WebGLTemplates

WebGLテンプレート用の index.html のサンプル http://negi-lab.blog.jp/WebGLTemplates

<!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 | %UNITY_WEB_NAME%</title>
    <link rel="shortcut icon" href="TemplateData/favicon.ico">
    <link rel="stylesheet" href="TemplateData/style.css">
    <script src="%UNITY_WEBGL_LOADER_URL%"></script>
    <script> var gameInstance = UnityLoader.instantiate("gameContainer", "%UNITY_WEBGL_BUILD_URL%");</script>

  </head>
  <body>
    <div class="webgl-content">
      <!-- <div id="gameContainer" style="width: 960px; height: 600px"></div> -->
      <div id="gameContainer"></div>
      <div class="footer">
        <div class="webgl-logo"></div>
        <div class="fullscreen" onclick="gameInstance.SetFullscreen(1)"></div>
        <div class="title">%UNITY_WEB_NAME%</div>
      </div>
    </div>
  </body>
</html>