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

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

291. 键盘事件监听时间间隔问题 [ 63%]

...动,比如按住“向右键”玩家一直向右走,移动速度根据Event.KEY_DOWN事件回调向前移动,但刚开始按住方向健的第一次和第二次或前几次的回调间隔时间很长,如下是按住某个健的回调时间,第一次和第二次时间间隔相差很大,...

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

292. box2d引擎报错问题 [ 63%]

...ation = new Laya.Animation(); ani.loadAnimation("catFly.ani"); ani.on(Laya.Event.COMPLETE, null, recover); function recover(): void { ani.removeSelf(); Laya.Pool.recover("deathEffect", ani); } return ani; } 附件 : --> 2019-10-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

293. list的selectHandler属性连续点击同一个item不能重复接收事件 [ 63%]

...         this.changeSelectStatus();             this.event(/*laya.events.Event.CHANGE*/"change");             this.selectHandler && this.selectHandler.runWith(value);             this.startIndex=this._startIndex;         //}     }); 20...

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

294. Spine骨骼动画点击区域偏移 获取不到width height [ 63%]

...i(`../bin/res/spine_model/${spine}.sk`);         this._factory.on(Laya.Event.COMPLETE, this, this.parseComplete, [x, y]);     }     private parseComplete(x, y) {         this._factory.off(Laya.Event.COMPLETE, this, this.parseComplete);         var sprite = this._factory.buildArmature...

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

295. Native下http请求,Error事件中的error对象错误码全都是404 [ 63%]

...不应该会有这个问题才是的 比如说这个代码: this.hr.once(Event.COMPLETE, this, onHrCompleteHandler); this.hr.once(Event.ERROR , this ,onHrErrorHandler); this.hr.send($url, $data, $method, $responseType, $headers); private function onHrCompleteHandler():void { if(this.completeHandle...

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

296. 代码创建精灵监听不到事件? [ 63%]

...e); var arr = {data: StorageRoom.map_storageData[0][0],tag:0}; box.on(Laya.Event.MOUSE_UP,this,this.onclick,[arr]);   var _proto = StorageUILayer.prototype;   _proto.onclick = function(params){ console.log("--------------------------------hhhhhhhhhhh- "); }   -------------------------------------...

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

297. viewstack 如何获取子页面对象,以及操作子页面中的按钮控件? [ 63%]

...相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 变量名.on(event.mousedown)  形如这样子的代码。 2018-05-23 0 5 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 131*****234 相关问题 两个对象new了一个相同的...

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

298. timeline 类动作节点回调 [ 62%]

...leX:1, scaleY:1, alpha:1},2000,null,0); timeLine.play(0,true); timeLine.on(Event.COMPLETE,this,this.onComplete); timeLine.on(Event.LABEL, this, this.onLabel); } function onComplete() { console.log("timeLine complete!!!!"); } function onLabel(label) { console.log("LabelName:" + label); }少年 没仔...

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

299. 动画-旧版骨骼动画 [ 62%]

...("../../res/threeDimen/skinModel/Zombie/old/Zombie.lh")); zombie.once(Laya.Event.HIERARCHY_LOADED, this, function () { zombie.transform.rotation = new Laya.Quaternion(-0.7071068, 0, 0, -0.7071068); zombie.transform.position = new Laya.Vector3(0.3, 0, 0); addSkinComponent(zombie); loadUI(); }); var s...

来源: Laya_示例 发布时间: 20260106

300. 如何获取实时更新的动态数据,数据在文本中 [ 62%]

....create(this,this.Onloaded),null,Laya.Loader.TEXT,0,true,null,true);*/ let event1=Laya.loader.load("eyeimf.txt", Laya.Handler.create(this, this.Onloaded), null, Laya.Loader.TEXT,0,true,null,true); //console.log(Laya.Loader.loadedMap); } 另外就是加载的时候,不缓存资源,就不能读取...

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