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

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

1381. 微信小游戏,截屏和开放域不能共存 [ 83%]

...吗? 版本是layaair2.1.0beta,截屏接口使用的是 drawToCanvas(this.basePanel.width, this.basePanel.height, this.basePanel.x, this.basePanel.y).toBase64("image/png", 0.9, function(base64){,另外看到也有其他人遇到这个问题,但是没人解答   附件 : --> 2019-06-24 添...

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

1382. Laya.Video内存泄漏问题 [ 83%]

...er.load([{url: video_url, type: Laya.Loader.BUFFER }], Laya.Handler.create(this, createVideo)); var v; function createVideo() { var video_file = new Blob([Laya.loader.getRes(video_url)], {type: 'video/webm'}); var blob_url = URL.createObjectURL(video_file); var video = new Laya.Video(); video.loop =...

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

1383. cavans上触发不了input的点击事件 [ 83%]

...事件 在舞台上添加一个sprite,给sprite添加一个点击事件,this.hitimg.on(Laya.Event.CLICK,this,this.onStart); onStart: _proto.onStart = function(){ console.log(111111122222); $("#fileInput").trigger('click'); } 可以打印数字,但是触发不了input控件。 <input id="f...

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

1384. Tween循环动画 [ 83%]

...计算循环的次数 Tween.to(sp,{x:500},1000,Ease.backIn,Handler.create(this,onTween1)); } private function onTween1():void { // TODO Auto Generated method stub num++; trace(num); Tween.clearTween(onTween1); Tween.to(sp,{x:100},1000,Ease.backIn,Handler.create(this,onTween2)); } private function on...

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

1385. TimeLine调用destroy报错&执行完成后回到起点 [ 82%]

..., alpha:1},2000,null,0); timeLine.play(0,true); timeLine.on(Event.COMPLETE,this,this.onComplete); timeLine.on(Event.LABEL, this, this.onLabel); } private function onComplete():void { trace("timeLine complete!!!!"); timeLine.pause(); timeLine.destroy(); // Laya.timer.frameOnce(10, this, dispose); } ...

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

1386. Laya.EventDispatcher off 删除侦听器 [ 82%]

...eventDis = new Laya.EventDispatcher()     eventDis.on('TEST_EVENT_DIS', this, someEventHandler, null)     eventDis.off('TEST_EVENT_DIS', this, another_eventHandler, false) off 怎样才能 从 EventDispatcher 对象中删除侦听器? 我这样做 eventDis 还是监听TEST_EVENT_DIS 2018-09-1...

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

1387. 用iframe内嵌网页及适配 [ 82%]

...String.prototype.format = function() { if (arguments.length == 0) { return this; } for (var str = this, index = 0; index < arguments.length; ++index) { str = str.replace("{" + index + "}", arguments[index]); } return str; }; var iframe = laya.utils.Browser.window.document.createElement('iframe');...

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

1388. EffectMaterial设置texture强制debugger [ 82%]

...*/     __getset(0,__proto,'texture',function(){         return this._shaderValues.getTexture(1);         },function(value){         debugger;         if (value)             this._defineDatas.add(laya.d3.core.material.EffectMaterial.SHADERDEFINE_MAINTEX...

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

1389. 在加载多个资源的时候,加载进度异常 [ 82%]

...tlas", "res/atlas/f4.atlas", "res/atlas/f5.atlas"],   Laya.Handler.create(this, function(){ }),  Laya.Handler.create(this, function(e){    console.log(e) } , Laya.Loader.ATLAS);   此时进度e的值只有一个数0.41 ,不会从0到1,这是什么原因? 2018-01-01 添加评论 免费帖 ...

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

1390. Laya.loader.create中的progress回调好像不准确? [ 82%]

....create("scenes/LayaScene_yueren/yueren.ls", Laya.Handler.create(this, function () { //complete func console.log("Scene loaded"); isLoaded = true; }), Laya.Handler.create(this, function (pro) { if (debug) console.log("Loading progresss : " + pro); }, null, false), Laya....

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