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

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

171. 2.2.0beta4 vivo小游戏加载不了3D场景 [ 68%]

...rpk到手机上就出问题了,main.ls是unity导出来的空场景 Laya.loader.create(`LayaScene_main/Conventional/main.ls`, Laya.Handler.create(this, (scene: Laya.Scene3D)=>{ Laya.stage.addChild(scene); }));   附件 : --> myLaya.zip 2019-09-06 添加评论 免费帖 --> 分享 微博 QZONE ...

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

172. List翻页效果 [ 68%]

... text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes("config/i18n.json"); text_info.text = i18n[`tips_text$text_i18n$${1101 + index}`][ConfigInfo.lang] } public setCurPage(index: number) { if (this.m_index != index) { for (let i = 1; i < 7; i++) { let skin = "u...

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

173. 求解关于跨域的具体操作 [ 68%]

...encoded'); xhr.once(Laya.Event.COMPLETE, this, this.completeHandler, [url, loader]); xhr.once(Laya.Event.ERROR, this, this.errorHandler); console.log("-----------------send------------------", url); xhr.send(url, "", "get", "arraybuffer"); 2018-07-04 添加评论 免费帖 --> 分享 微博 QZONE ...

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

174. 编辑器选择分离模式生成TS代码时能自动在createChildren里加上createView调用代码么? [ 68%]

...Children():void {     super.createChildren();     this.createView(Laya.loader.getRes("test/TestPage.json"));     this.loadUI("test/TestPage"); }   2. 在编辑器生成代码的时候怎么添加自定义的操作? 比如我想同时生成一个UI资源引用的配置文件要怎么做 2017-1...

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

175. List翻页效果怎么实现 [ 67%]

... text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes("config/i18n.json"); text_info.text = i18n[`tips_text$text_i18n$${1101 + index}`][ConfigInfo.lang] } public setCurPage(index: number) { if (this.m_index != index) { for (let i = 1; i < 7; i++) { let skin = "u...

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

176. 自定义loadingView [ 67%]

...进行进度值传参 dd.loading(50); } //加载引擎需要的资源 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } 这里的dd=__JS__("window.loadingView"); 换成 ts 怎么写 Apple • 2018-04-16 16:22 直接 Laya.Brows...

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

177. laya 的list组件,如果有多页信息,怎么实现翻页丫?? [ 67%]

... text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes("config/i18n.json"); text_info.text = i18n[`tips_text$text_i18n$${1101 + index}`][ConfigInfo.lang] } public setCurPage(index: number) { if (this.m_index != index) { for (let i = 1; i < 7; i++) { let skin = "u...

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

178. 垂直布局容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 67%]

...组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skins).then(() => { this.createBtn(); this.createvbox(); // 添加VBox组件 this.owner.addChild(this.vbox); }); } // 创建Button组件 private createBtn(): void { this.btn1 = new Laya.Button(this.skins);...

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

179. 水平布局容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 67%]

...组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skins).then(() => { this.createBtn(); this.createHbox(); // 添加HBox组件 this.owner.addChild(this.hbox); }); } // 创建Button组件 private createBtn(): void { this.btn1 = new Laya.Button(this.skins);...

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

180. 资源导出后LAYA跟unity,transform效果不一致 [ 67%]

...: 不经过Sprite3D.instantiate,直接addchild,this.scene2.addChild(Laya.loader.getRes("res/test.lh")),就没问题 @Laya_Aaron 2018-08-02 0 4 分享 微博 QZONE 微信 家民 赞同来自: 这个问题一直都还存在吗??? 2020-08-27 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 ...

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