大约有 1,155 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0050 秒)
Laya_社区(864) Laya3.0_api(80) Laya2.0_文档(72) Laya_示例(52) Laya2.0_示例(48) Laya3.0_文档(35) laya_api(2) Laya2.0_api(2)
...VE事件会报错 var test = new Laya.Image('img/icon/face.png'); test.x = this.width / 2; test.y = this.height / 2; this.addChild(test); test.on(Laya.Event.MOUSE_MOVE, this, (e) => { console.log(e); }); 监听mouse_move事件后,手指在test上滑动,会报错: 附件 : --> 2017-08-06 ...
来源: Laya_社区 发布时间: 20170806
... 横竖屏切换,此引擎渲染有BUG Laya.stage.on(Laya.Event.RESIZE, this, this.OnresizeFn); Laya.stage.alignH = "center";//"left"; Laya.stage.alignV = "middle";//"top"; Laya.stage.screenAdaptationEnabled=true; oldWith: number = 0; oldheight: number = 0; HengPing(isFirst: boolean): void ...
来源: Laya_社区 发布时间: 20180517
...键回调函数中调用DoFunc报错 我现在得到结论 KeyHandler中的this不能指代__proto对象 要使this指代过去,我记得参数中要加个参数才对,麻烦看下是不是转换问题,还是有这种写法 附件 : --> 2017-01-23 添加评论 免费帖 --> 分享 微博 QZ...
来源: Laya_社区 发布时间: 20170123
...or, data?:any)=>void) { let req = new Request(); req.on(Event.COMPLETE, this, (data) => { cb(null, data); }); req.on(Event.ERROR, this, (err) => { console.error(err); cb(err); }); let body = data; let tp = typeof data if(tp === 'object' || tp === 'array'){ if(method === 'post' || method ===...
来源: Laya_社区 发布时间: 20170123
...raphics.drawCircle(0,0,50,'#FF0000'); sp.mask=mask; Laya.timer.frameLoop(1,this,function():void { mask.x++; sp.repaint(); });小提示: LayaAir下,Mask是添加到了显示对象内部,也就是说,LayaAir 下的Mask坐标是相对于被遮罩 对象的,而并非舞台。 c.精...
来源: Laya_社区 发布时间: 20170207
Animation 播放完成回调有参数吗 Animation.on(Event.COMPLETE, this, bfwc); function bfwc(e){ console.log(e.target.name); } 是错误的 2017-07-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 ...
来源: Laya_社区 发布时间: 20170718
... }),如果有 async(){ await xxxx }会报这个错误 TS2354: [31mThis syntax requires an imported helper but module 'tslib' cannot be found. 一、万年没修成功过的自定义导出类 自动添加Laya前缀问题 二、切换类库依旧报错 三、拖尾依然没提供重置...
来源: Laya_社区 发布时间: 20191017
...原因呢 doMsg:function(){ if(this.msgs.length == 0 || !this.workDone){ return; } var data = this.msgs.shift(); ...
来源: Laya_社区 发布时间: 20180410
...(!data.dataType || data.dataType !="imageBitmap"){ this.event(data.url,null); return; }; var bitmap; var imageData=data.imageBitmap; if (Render.isWebGL){ /*__JS__ *...
来源: Laya_社区 发布时间: 20171120
... = 'horizontal'; Laya.loader.load(['res/atlas/view.atlas'], Handler.create(this, initGame)); Laya.timer.frameOnce(1, this, function () { Laya.stage.on(Event.RESIZE, this, function () { window.location.reload(); }) }) 2018-04-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20180416