cocoscreator 3.3.2

【项目】【构建发布】发布平台“Web-Mobile” 提示 “Build success”,但是运行的时候“网络”有1个破坏性更改,一个可以改进的问题,控制台没有报错
Audit usage of navigator.userAgent, navigator.appVersion, and navigator.platform

  1. A page or script is accessing at least one of navigator.userAgent , navigator.appVersion , and navigator.platform . Starting in Chrome 101, the amount of information available in the User Agent string will be reduced.
    To fix this issue, replace the usage of navigator.userAgent , navigator.appVersion , and navigator.platform with feature detection, progressive enhancement, or migrate to navigator.userAgentData .
    Note that for performance reasons, only the first access to one of the properties is shown.
  2. 受影响的资源
  3. 1 个来源
    1. system.bundle.js:1

Deprecated Feature Used

  1. Using the Battery Status API (e.g. navigator.getBattery()) in insecure origins like HTTP is deprecated and will be removed in M103, around June 2022. See https://www.chromestatus.com/feature/4878376799043584 for more details.
  2. 受影响的资源
  3. 1 个来源
    1. cc.js:1
  • Creator 版本: 3.3.2
  • 目标平台: chrome 版本 99.0.4844.51(正式版本) (x86_64)

近期开始学习cocoscreator, 开发了一款小游戏,web mobile 发布时,没有按照预期的样子显示。后来终于发现是我的问题,我的项目里有两个场景,名字一样,都是main, 层级路径不一样,在发布的时候,有一个选项,【初始场景】选错了,导致构建发布后显示的不是我的游戏场景。开始以为是上面的两个问题导致的,后来发现和上面的两个问题没关系,只是初始场景选择错误。目前即使有这两个网络问题提示,项目构建发布后仍可以正常运行。

该主题在最后一个回复创建后14天后自动关闭。不再允许新的回复。