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

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

151. List翻页效果怎么实现 [ 49%]

...this, this.onMouse) } onOpened(param: any) { super.onOpened(param); let imgArray = []; for (let i = 1; i < 7; i++) { imgArray.push(`ui/bg_help_0${i}.png`) } this.list_rule.array = imgArray; } public updateItem(cell: Laya.Box, index: number): void { let img_rule = cell.getChildByName("img_rule") a...

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

152. 【LIST无法拖动】参照官方实例做的 [ 49%]

... // 设置数据项为对应图片的路径         var data: Array<String> = [];         //解析二进制已获得关卡队列,先取有效位书          let s = json.my_guanqia.substr(0,this.default_guanqia.length);         data = this.find_Strin...

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

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

...this, this.onMouse) } onOpened(param: any) { super.onOpened(param); let imgArray = []; for (let i = 1; i < 7; i++) { imgArray.push(`ui/bg_help_0${i}.png`) } this.list_rule.array = imgArray; } public updateItem(cell: Laya.Box, index: number): void { let img_rule = cell.getChildByName("img_rule") a...

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

154. 请问laya有没有类似翻页容器(pageView)的组件? [ 47%]

...this, this.onMouse) } onOpened(param: any) { super.onOpened(param); let imgArray = ; for (let i = 1; i < 7; i++) { imgArray.push(`ui/bg_help_0${i}.png`) } this.list_rule.array = imgArray; } public updateItem(cell: Laya.Box, index: number): void { let img_rule = cell.getChildByName("img_rule") as ...

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

155. 2D性能优化 · LayaAir3.4 · 引擎文档 · LAYABOX [ 46%]

...资源后对比资源卸载前和卸载后的资源状态: var assets: Array<any> = [] assets.push("resources/apes/monkey0.png"); assets.push("resources/apes/monkey1.png"); assets.push("resources/apes/monkey2.png"); assets.push("resources/apes/monkey3.png"); Laya.loader.load(assets).then(()=...

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

156. 请大家帮助优化一下这个抛物线的代码 [ 46%]

...e radius:number = 150; //半径 private speed:number = .05; private points:Array<any> = ; private i:number = 0; constructor() { Laya.init(1100, 619, Laya.WebGL); Laya.loader.load("res/atlas/war.atlas",Laya.Handler.create(this,this.onLoaded),null,Laya.Loader.ATLAS); } private onLoaded():void{ t...

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

157. list ,增加item ,我想在末尾增加,但是每次都给我翻倍的增加,如何解决 [ 45%]

...); var data = []; for (var i = 0; i < 1; ++i) { data.push("11"); } list.array = data; } 2017-09-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 请提供可运行的Demo示例,谢...

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

158. 富文本过程中我遇到的问题以及解决方法(超链接换行以及无法接收超链接鼠标事件以及br或者 标签会崩溃报错的问题) [ 43%]

...ildren)                 this._children.forEach(function (o, index, array) {                     var _style = o._style;                     if(_style)                     {                       _style._enableLayout && _style._enableLayout() &a...

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

159. 3D粒子 · LayaAir3.4 · 引擎文档 · LAYABOX [ 42%]

... null; private _particle: Laya.Sprite = null; private _shuriKenParticle3D: Array<ShuriKenParticle3D>= []; private _shurikenParticleSystem: Array<ShurikenParticleSystem>= []; constructor() { super(); } //通过传入粒子特效的路径,创建一个粒子特效,从对象池里拿一...

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

160. 3D粒子编辑模块 · LayaAir3文档 · LAYABOX [ 42%]

... null; private _particle: Laya.Sprite = null; private _shuriKenParticle3D: Array<ShuriKenParticle3D>= []; private _shurikenParticleSystem: Array<ShurikenParticleSystem>= []; constructor() { super(); } //通过传入粒子特效的路径,创建一个粒子特效,从对象池里拿一...

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