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

大约有 1,144 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0048 秒)

581. LayaAir引擎与原生Flash的差异文档说明! [ 67%]

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

582. Animation 播放完成回调有参数吗 [ 67%]

Animation 播放完成回调有参数吗 Animation.on(Event.COMPLETE, this, bfwc); function bfwc(e){         console.log(e.target.name); }    是错误的 2017-07-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 ...

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

583. 2.3.0beta 各种bug [ 67%]

...    }),如果有  async(){ await xxxx }会报这个错误 TS2354: [31mThis syntax requires an imported helper but module 'tslib' cannot be found.   一、万年没修成功过的自定义导出类 自动添加Laya前缀问题 二、切换类库依旧报错 三、拖尾依然没提供重置...

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

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

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

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

585. worker.js 使用问题 [ 67%]

...(!data.dataType || data.dataType !="imageBitmap"){             this.event(data.url,null);             return;         };         var bitmap;         var imageData=data.imageBitmap;         if (Render.isWebGL){             /*__JS__ *...

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

586. Laya IDE横竖屏切换时,不断刷新 [ 67%]

... = '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

587. 资源加载事件监听 [ 67%]

...否可以监听, 比如类似这样 Laya.stage.on(Laya.Event.COMPLETE, this, this.OnLoadLog); 2017-08-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 资源加载有Event.LOADED事件...

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

588. 添加舞台事件问题? [ 67%]

添加舞台事件问题? this.addEventListener(Event.ADDED_TO_STAGE, addtoStageHandler); as3的添加舞台事件,Laya有木有类似的事件啊? 2017-03-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 ...

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

589. 重力感应在手机没有回调问题 [ 67%]

...力感应在手机没有回调问题 Accelerator.instance.on(Event.CHANGE, this, this.monitorAccelerator);   monitorAccelerator(acceleration, accelerationIncludingGravity, rotationRate, interval) 在PC端调试回调中accelerationIncludingGravity为空,手机扫码调试。次函数不会被调...

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

590. 位图切片组件 · LayaAir3.0文档 · LAYABOX [ 67%]

...和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.clip.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); // 位置 this.clip.skin = "atlas/comp/clip_num.png"; // 皮肤 this.clip.interval = 1000; // 切片动画的播放时间间隔1000毫秒 this.clip.clipX...

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