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

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

261. 1.76beta引擎库的BUG:Laya.List动态载入后,滑动时会将list框本身的滑动区域一并向滑动方向移动,会出现点击list中空白区域就无法滑动的情况 [ 42%]

...  for(let i = 0; i< 50; i++)         {             this.test.push(i);         }         this.list.array = this.test;     }     onItemRender(item: Item_List, index: number): void     {         item.setItem(index);     } }     Item: class Item_List extends ui.Item_l...

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

262. 垂直滑动条组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 42%]

... constructor() { super(); } onAwake(): void { let skins: any[] = []; skins.push("vslider.png", "vslider$bar.png");//图片资源来自“引擎API使用示例” Laya.loader.load(skins, Laya.Handler.create(this, this.placeVSlider)); } private placeVSlider(): void { let vs: Laya.Slider = new Laya.VSl...

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

263. 水平滑动条组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 42%]

... constructor() { super(); } onAwake(): void { let skins: any[] = []; skins.push("hslider.png", "hslider$bar.png");//图片资源来自“引擎API使用示例” Laya.loader.load(skins, Laya.Handler.create(this, this.placeHSlider)); } private placeHSlider(): void { let hs: Laya.Slider = new Laya.HSl...

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

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

...; if (child instanceof Laya.ShuriKenParticle3D) { this._shuriKenParticle3D.push(child); this._shurikenParticleSystem.push(child.particleSystem); } } this.addChild(this._particle); this._isInited = true; } //粒子特效播放,由于一个复杂的粒子特效由多个粒子系统组成,此时遍...

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

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

...; if (child instanceof Laya.ShuriKenParticle3D) { this._shuriKenParticle3D.push(child); this._shurikenParticleSystem.push(child.particleSystem); } } this.addChild(this._particle); this._isInited = true; } //粒子特效播放,由于一个复杂的粒子特效由多个粒子系统组成,此时遍...

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

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

...++) { var point = MultiPointBezier(anchorpoints, i / pointsAmount); points.push(point); } return points; } function MultiPointBezier(points, t) { var len = points.length; var x = 0, y = 0; var erxiangshi = function (start, end) { var cs = 1, bcs = 1; while (end > 0) { cs *= start; bcs *= end; sta...

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

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

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

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

268. 2D寻路 · LayaAir3.4 · 引擎文档 · LAYABOX [ 41%]

...{ let comp = sprite.getComponent(componentType); if (comp != null) { lists.push(comp); } for (var i = 0; i < sprite.numChildren; i++) { let child = sprite.getChildAt(i) as Sprite; this.findCompents(lists, child, componentType); } } //组件被激活后执行,此时所有节点和组件均已创...

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

269. Laya 绑定显示内容到骨骼动画 [ 40%]

...ex:number=this.__bindList.indexOf(source); if(index<0){ this.__bindList.push(source); } this.addChild(source); this.timer.frameLoop(1,this,this.__updateBinds); }  unbind(source:BindSource):void{ let index:number=this.__bindList.indexOf(source); if(index<0){ throw new Error("找不到要删...

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

270. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 40%]

...r(){ //程序入口 Laya.init(400, 400, Laya.WebGL); let res:any = []; res.push({url:"res/atlas/comp.atlas", type:Loader.ATLAS}); Laya.loader.load(res, Handler.create(null, this.__onLoaded)); } private __onLoaded(): void { Laya.stage.addChild(new Test()); } } new Entry();   Test.ts import Sprite = ...

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