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

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

1. Laya.timer.loop() 报错 Cannot read property 'loop' of null [ 100%]

...umber = 0; private y0:number = 0; constructor(){super();} onEnable():void{ this.x = this.x0; this.y = this.y0; Laya.timer.loop(20, this, this.frameWork); // 每 20 ms 执行一次 } private frameWork():void{ this.y = this.y0 + 10 * (this.n % 3); alert("move "); } }代码放在一个 Image 组件的 ...

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

2. [LayaAir3]list.selectHandler [ 96%]

...选择的索引:" + index);         let checkBoxItem:Laya.CheckBox = this._list.getChildAt(index).getChildAt(0) as Laya.CheckBox;         if(checkBoxItem!=null){                         switch(checkBoxItem.name.trim()){                 case "0":{                ...

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

3. Label 在设置。text时 底层this._tf为null 父节点又存在 还是偶发 [ 92%]

Label 在设置。text时 底层this._tf为null 父节点又存在 还是偶发 在设置Label.text属性情况下。Label存在可以log。设置的text string 也无问题。就是laya.ui.js 中this._tf为null导致 设置text失败。LayaAir2.13 版本。 附件 : --> 2022-08-23 添加评论 免...

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

4. 按钮失效,同UI里的一个图片超链接点击后再返回,出现按钮失效。 [ 92%]

...承类 var StartResource = function StartResource(){ StartResource.super(this); //LOGO 图标 访问地址 var href='https://list.tmall.com/search_product.htm?q=%BB%A8%D3%A1%D0%B6%D7%B1%CB%AE&type=p&spm=a220m.1000858.a2227oh.d100&xl=%BB%A8%D3%A1_2&from=.list.pc_1_suggest';     if(...

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

5. tween有这个一个bug [ 91%]

...,{x:point.x,y:point.y,alpha:1,update:Laya.Handler.create(point,function(){ this.visible = true; })},800,Laya.Ease.backOut,null,i*400); timeline在一开始还在正常执行, 当有一半左右的ui元素进入到场景时, timeline循环卡住不动了, 等所有ui动画执行完毕, timeline又开...

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

6. List组件拖动浏览时item会出现重叠的现象 [ 91%]

...可做的操作 list.selectEnable = true; list.selectHandler = new Handler(this, this.onSelect); // 滚动条的橡皮筋操作:回弹时间及弹性距离 list.scrollBar.elasticBackTime = 200; list.scrollBar.elasticDistance = 5; Laya.stage.addChild(list); // 设置数据项为对应图片的路...

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

7. tiledMap问题,getTileProperties获取地图属性不能获取到 [ 87%]

...  __proto.getTileProperties=function(index,id,name){         if (this._tileProperties[index] && this._tileProperties[index][id]){             return this._tileProperties[index][id][name];         }         return null;     }     import { ui } from ...

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

8. list里面可以加入多个view吗? [ 85%]

...m<3;m++) { vdata.push({name:{text:'gggg'}}); //压入三个view对象 } this.lister.array = vdata; this.lister.vScrollBarSkin = ""; this.lister.scrollBar.hide = true; 整体UI结构: VIEW -----list --------view -------------label 2017-06-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

9. 龙骨动画的监听回调,有时能回调,有时不能回调 [ 85%]

...ya.Skeleton> = [];  public static getInstance():DdzLandlordAni{ return this.instance(DdzLandlordAni); }  public constructor(){ super(); this.initTemplet(); }  public static destoryInstance(){ if(this.mInstance){ (<DdzLandlordAni>this.mInstance).destory(); this.mInstance = null; } }  pub...

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

10. 自定义渲染后,customRender里设置uniform值在ui节点下不生效 [ 84%]

...ext:Laya.RenderContext,x:number,y:number):void{             if(this.shader._program)             {                 let u_lightTime = gl.getUniformLocation(this.shader._program, "u_lightTime")                 gl.uniform1f(u_lightTime, this.timer...

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