湖北Webgl项目开发笔记

问题1:点击“截图记录”时,无法显示出图片?

答:未修改HBPRO-0.0.1-SNAPSHOT(2).jar,位于D:\HBPRO\HBPRO-0.0.1-SNAPSHOT(2).jar

问题2:打包AB包后,加载个别步骤的Timeline的时候,Unity编辑器突然闪退!!

答:这里是由于里面的语音格式导致的,修改后便不会闪退了;

修改前语音格式:

修改后语音格式:

问题3: index.html备份

解决问题(1):Webgl在安卓和苹果设备上需要呈现不同的UI内容、以及手机端需要横屏按钮;

解决问题(2):   点击浏览器上的刷新按钮或关闭按钮后,账户退出登录问题;

解决问题(3):  其他浏览器都是异步退出登录,只有火狐浏览器需要同步方式退出。

解决问题(4):动态调整Windows下 不同分辨率显示器呈现的UI界面;

解决问题(5):安卓后台退出webgl程序进程后,账户无法退出问题;

<!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 | 配网带电作业数字化实训平台</title>
    <link rel="shortcut icon" href="TemplateData/favicon.ico">
    <link rel="stylesheet" href="TemplateData/style.css">
  </head>
  <body>
      <div id="unity-container" class="unity-desktop">
          <canvas id="unity-canvas" width=1920 height=1080></canvas>
          <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">
              <div id="unity-webgl-logo"></div>
              <div id="unity-fullscreen-button"></div>
              <div id="unity-build-title">配网带电作业数字化实训平台</div>
          </div>
      </div>
      <script>
          var container = document.querySelector("#unity-container");
          var canvas = document.querySelector("#unity-canvas");
          var loadingBar = document.querySelector("#unity-loading-bar");
          var progressBarFull = document.querySelector("#unity-progress-bar-full");
          var fullscreenButton = document.querySelector("#unity-fullscreen-button");
          var warningBanner = document.querySelector("#unity-warning");

          // Shows a temporary message banner/ribbon for a few seconds, or
          // a permanent error message on top of the canvas if type=='error'.
          // If type=='warning', a yellow highlight color is used.
          // Modify or remove this function to customize the visually presented
          // way that non-critical warnings and error messages are presented to the
          // user.
          function unityShowBanner(msg, type) {
              function updateBannerVisibility() {
         
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

林枫依依

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值