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

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

1. Laya2.0编译后所有js自动合并到bundle.js中,导致bundle.js过大,加载速度很慢,bundle.js可以拆分吗 [ 100%]

... /* Specify library files to be included in the compilation. */     // "allowJs": true,                       /* Allow javascript files to be compiled. */     // "checkJs": true,                       /* Report errors in .js files. */     // "jsx": "preserve",      ...

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

2. 微信小游戏实时调试的问题 [ 95%]

...来自: 我创建的是小游戏2d项目,你是说require是layaUI.max.all.js吗,我尝试把index.html里面的js文件按照html里面的顺序require一遍还是不行,要不你试试看。报错在附件里面,我把layaUI.max.all.js里面的uicode 手动copy到LayaUISample.js启动类...

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

3. 通过AnimatorState为Animator添加多个播放状态islooping属性会被覆盖 [ 94%]

...(): void { this.ani = this.owner.sprite3d.getComponent(Laya.Animator); let all = 486; let arr = ["3,21,run,true", "29,59,wolk,true", "70,120,cheer,true", "125,380,dance,true", "393,440,forerake,false", "443,485,backward,true"]; let state: Laya.AnimatorState; console.log("getANi"); for (let i = 0; i ...

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

4. [LayaAir IDE 2.0 beta4] 使用 prettier 格式化 ts 插件问题 [ 92%]

...{ "printWidth": 130, "tabWidth": 4, "singleQuote": true, "trailingComma": "all", "arrowParens": "always" }   工作区设置也配置了: { "editor.formatOnSave": true, "prettier.printWidth": 130, "prettier.tabWidth": 4, "prettier.singleQuote": true, "prettier.trailingComma": "all" } 2019-10-31 0...

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

5. ui导入报错 [ 89%]

... property 'View' of undefined at file:///D:/wxgame/hello/src/ui/layaUI.max.all.js:3:17 2018-06-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 检查项目代码,用法是否错误,...

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

6. TS项目中怎么使用promise [ 85%]

...d, reject: (reason?: any) => void) => void): Promise<T>;     all<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6&g...

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

7. Laya2自动同步cullingMask方案以及灯光裁剪补丁 [ 81%]

...ask是 除了UI层,需要。 那么子对象名称就是 culling_mask=all|!ui 如果我们的cullingMask是,只要ui和fx层,那么子对象名称就是 culling_mask='ui|fx' 如下图所示,我为摄相机和灯光添加了culling_mask子对象,这个子对象会在代码中被删除...

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

8. 安装layaair2-cmd一直失败 [ 81%]

...np m\node_modules\layaair2-cmd\layaair2-cmd.js > core-js@2.6.11 postinstall C:\Users\Administrator\AppData\Roaming\npm\node_modules\layaair2-cmd\no de_modules\core-js > node -e "try{require('./postinstall')}catch(e){}" Thank you for using core-js ( https://github.com/zloirock/core-js ) for pol...

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

9. charRender_Canvas是干啥的,直接加在body底下会引起wcag的报错 [ 80%]

...arRender_Canvas是干啥的,直接加在body底下会引起wcag的报错 All page content shoud be contained by landmarks   <canvas width="1024" height="512" style="left: -10000px; position: absolute;"></canvas> 附件 : --> 2022-07-20 添加评论 免费帖 --> 分享 微博 QZONE ...

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

10. [LayaAirIDE3]3.3.1 UI点击区域异常,mouseThrough属性失效 [ 80%]

...rsively check its child objects until it finds the target object or misses all objects. * When not penetrable, the node's width and height define the mouse collision area (a non-penetrable rectangular area). If the rectangular collision area does not meet the requirements, you can use the drawing ar...

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