lsc 3 년 전
부모
커밋
1d5ae23738
5개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 3
      Assets/WebGLTemplates/template/index.html
  2. BIN
      Library/ArtifactDB
  3. BIN
      Library/SceneVisibilityState.asset
  4. BIN
      Library/SourceAssetDB
  5. 2 1
      dist/index.html

+ 2 - 3
Assets/WebGLTemplates/template/index.html

@@ -29,7 +29,7 @@
   <div class="loading">
     <img src="./TemplateData/cocorobo-loading.gif" />
   </div>
-  <canvas id="unity-canvas"></canvas>
+  <canvas style="display: none;" id="unity-canvas"></canvas>
   <script src="Build/dist.loader.js"></script>
   <script>
     var myGameInstance = null;
@@ -46,6 +46,7 @@
     }, (progress) => {}).then((unityInstance) => {
       myGameInstance = unityInstance;
       document.getElementsByClassName("loading")[0].style.display = "none";
+      document.getElementById("unity-canvas").style.display = "";
       window.parent.postMessage({
         success: 1
       }, '*');
@@ -87,8 +88,6 @@
         }
       }
     });
-
-
   </script>
 </body>
 

BIN
Library/ArtifactDB


BIN
Library/SceneVisibilityState.asset


BIN
Library/SourceAssetDB


+ 2 - 1
dist/index.html

@@ -29,7 +29,7 @@
   <div class="loading">
     <img src="./TemplateData/cocorobo-loading.gif" />
   </div>
-  <canvas id="unity-canvas"></canvas>
+  <canvas style="display: none;" id="unity-canvas"></canvas>
   <script src="Build/dist.loader.js"></script>
   <script>
     var myGameInstance = null;
@@ -46,6 +46,7 @@
     }, (progress) => {}).then((unityInstance) => {
       myGameInstance = unityInstance;
       document.getElementsByClassName("loading")[0].style.display = "none";
+      document.getElementById("unity-canvas").style.display = "";
       window.parent.postMessage({
         success: 1
       }, '*');