• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 2,910 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0077 秒)

241. [0]laya-zip让你的游戏加载速度提升350%!! [ 64%]

.../ Use ZIP when loading files // Note By convention, only resource files in the level-1 directory are loaded Laya.loader.create([{ url: "xx.zip", type:"ZIP"}]) [/size][/code] 如果只需要加载zip包中的部分资源,或者资源路径在多级目录下。可以在constructParams中进行配置...

来源: Laya_社区 发布时间: 20211227

242. 1整天了,还是没解决加载本地文件问题 [ 64%]

...'null' has been blocked by CORS policy: Invalid response. Origin 'null' is therefore not allowed access. 加载本地文件总是报错, chrome 浏览器快捷方式有加 --allow-file-access-from-files 了,还是一样。下载的 微信飞机源码,早上能正常运行,下午就不行了...

来源: Laya_社区 发布时间: 20170830

243. iphone6闪退 [ 64%]

...plication/6815AAA5-5DD9-4F5E-B035-86F46C8BD87F/layabox.app/layabox. One of the two will be used. Which one is undefined. 2017-11-27 16:20:55.044 layabox[644:298297] 当前应用软件版本:2.2 2017-11-27 16:20:55.045 layabox[644:298297] 当前应用Local版本号码:2.2 2017-11-27 16:20:55.046 la...

来源: Laya_社区 发布时间: 20171127

244. 屏幕适配 · LayaAir3.3 · 引擎文档 · LAYABOX [ 64%]

...a.Browser.clientWidth获取逻辑分辨率的宽,通过Laya.Browser.clientHeight获取逻辑分辨率的高。 在手机等移动设备的竖屏状态下,窄面为宽,长面为高。如果发生了屏幕翻转的横屏状态,则长的一面为宽,窄面为高。 在PC浏览器中,则是...

来源: Laya3.0_文档 发布时间: 20251010

245. httprequest ios手机上请求提示Request failed status:0 [ 64%]

... 2019-04-25 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 1、If the state is UNSENT or OPENED, return 0.(如果状态是UNSENT或者OPENED,返回0) 2、If the error flag is set, return 0.(如果错误标签被设置,返回0)   前面提到,服务器在完成请求之后会...

来源: Laya_社区 发布时间: 20180522

246. 国际化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 63%]

...2x" }).setContent("en", { meshRate: "Mesh Rate2", meshRateTips: "Compress the model mesh based on the set ratio." }); console.log(myI18n.t("meshRate")); Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:59 img{cursor:pointer}

来源: Laya3.0_文档 发布时间: 20251010

247. 仿照laya官方demo做了一个视频播放的UI,为啥在微信里不能用? [ 62%]

...啥原因,哪位高人知识咋回事?代码如下:   /**Created by the LayaAirIDE*/ module view { export class Guide extends ui.GuideUI { constructor() { super(); // 创建Video元素 let videoElmt: any = Laya.Browser.createElement("video"); Laya.Browser.document.body.appendChild(videoElmt);...

来源: Laya_社区 发布时间: 20180802

248. 安装layaair2-cmd一直失败 [ 62%]

...re-js@<3 is no longer maintained and not recommended for usage  due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. C:\Users\Administrator\AppData\Roaming\npm\layaair2-cmd -> C:\Users\Administrator\AppData\Roaming\np m\node_modules\layaair2-cmd\l...

来源: Laya_社区 发布时间: 20200211

249. 使用layaide构建的安卓项目打包apk,安装在某些设备上会闪退 [ 62%]

...26:51.171 1371-1371/com.etvtech.pvsz I/Choreographer: Skipped 31 frames!  The application may be doing too much work on its main thread. 04-18 17:26:51.201 1371-1371/com.etvtech.pvsz D/OpenGLRenderer: Enabling debug mode 0 04-18 17:26:51.241 1371-1384/com.etvtech.pvsz W/dalvikvm: threadid=11: threa...

来源: Laya_社区 发布时间: 20190418

250. 如何使用vscode编译laya项目 [ 61%]

...json", check: true, //Set to false to avoid doing any diagnostic checks on the code tsconfigOverride:{compilerOptions:{removeComments: true}}, include:/.*.ts/, }),3、compile.js 完整代码如下 // v1.2.2 //获取Node插件和工作路径 [b]let ideModuleDir; let workSpaceDir; for(var argv of proc...

来源: Laya_社区 发布时间: 20200607