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

大约有 4,034 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0077 秒)

1151. 关于3D动画的ani监听播放完毕后,播放默认动画不行 [ 85%]

关于3D动画的ani监听播放完毕后,播放默认动画不行 this.mAni.on(Laya.Event.COMPLETE,this,this.aniComplete); this.mAni.play("free") aniComplete(type:number):void {    this.mAni.play("ready"); }   播放完指定动画后,这个回调不执行。   附件 : --> pkwang3D.rar 20...

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

1152. AS转换JS运行报错 [ 85%]

...键回调函数中调用DoFunc报错 我现在得到结论 KeyHandler中的this不能指代__proto对象 要使this指代过去,我记得参数中要加个参数才对,麻烦看下是不是转换问题,还是有这种写法   附件 : --> 2017-01-23 添加评论 免费帖 --> 分享 微博 QZ...

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

1153. 三个手指并排点击屏幕卡死 [ 85%]

...ent){         var index=element._getIndexInList();         this.length--;         if (index!==this.length){             var end=this.elements[this.length];             this.elements[index]=end;                       end._setIndexI...

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

1154. 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

1155. 绘制形状时事件不触发 [ 85%]

...时事件不触发 function myRing(x,y,r1,color1,r2,color2) {         this.sprite = new Laya.Sprite();     this.sprite.on('mousedown', this, on_down);     this.sprite.graphics.drawCircle(x, y, r2, color2, color2, 2);     this.sprite.graphics.drawCircle(x, y, r1, color1, color1, 0);     ...

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

1156. LayaAir引擎1.7 之后as转换js,出现问题 [ 85%]

... __getset(0,__proto,'visible',function(){ return Laya.superGet(SwatAniUI,this,'visible'); },function(value){ Laya.superSet(SwatAniUI,this,'visible',value); if (value) this._mcAni.removeFromParent(); }); //----Laya.superSet,没有这个方法吧?   1.7之前的转换 __getset(0,__proto,'visible'...

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

1157. Laya3.0 获取物体初始位置错误 [ 85%]

... 0 分享 微博 QZONE 微信 Laya_Fred 赞同来自: 您好,在初始化this.initPos = this.rabbit.transform.postion;的时候,实际长拿到的是rabbit.transform.postion的引用,所以在修改rabbit.transform.position之后,打印的this.initPos也会同步变化;要解决这个问...

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

1158. native打包成app使用FileReader接口readAsArrayBuffer 时app崩溃 [ 85%]

...原因呢     doMsg:function(){                     if(this.msgs.length == 0 || !this.workDone){                         return;                     }                                      var data = this.msgs.shift();   ...

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

1159. Node.prototype.removeChildren移除计数有问题 [ 85%]

...都存在: removeChildren(beginIndex = 0, endIndex = 0x7fffffff) { if (this._children && this._children.length > 0) { var childs = this._children; if (beginIndex === 0 && endIndex >= childs.length - 1) { var arr = childs; this._children = Node.ARRAY_EMPTY; } else { arr = chil...

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

1160. laya.timer.clear这个定时器的回调函数到底怎么用啊?模拟器上不报错,真机运行会抱着个错 [ 85%]

...域, 要清理的定时器监回调方法(looppp)) Laya.timer.loop(100,this,looppp); 清理定时器是支持的哦!你看看你的清理是不是导致了你的代码错误! 2018-05-08 0 2 分享 微博 QZONE 微信 bbh 赞同来自: 模拟器上都没问题,就手机I上报了个错误 ...

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