大约有 1,144 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0058 秒)
Laya_社区(859) Laya3.0_api(80) Laya2.0_文档(72) Laya_示例(52) Laya2.0_示例(48) Laya3.0_文档(29) laya_api(2) Laya2.0_api(2)
...ngContext":No function was found that matched the signature provided 在this.texture2D.loadImageSource(this.cav);报错 this.cav = Laya.Browser.createElement("canvas"); this.cav.width = 256; this.cav.height = 256; var cxt = this.cav.getContext("2d"); cxt.fillStyle = 'rgb(' + '220' + ',' + '5...
来源: Laya_社区 发布时间: 20200714
...sh使用吗? masterbtn.tag = 0; masterbtn.on(Laya.Event.MOUSE_UP,this,this.onItemMaster); _proto.onItemMaster = function(params){ var btn = params.currentTarget; console.log("----------------------- ",btn.tag);//我赋值是0,但这里调用获取是2?? } 2017-11-20 添加评论 免费...
来源: Laya_社区 发布时间: 20171120
...res/spineboy-pma.skel", Loader.SPINE).then((templet: SpineTemplet) => { this.skeleton = new SpineSkeleton(); this.skeleton.templet = templet; this.owner.addChild(this.skeleton); this.skeleton.pos( this.pageWidth / 2, this.pageHeight / 2 + 100); this.skeleton.scale(0.4, 0.4); this.skeleton.on(Laya...
来源: Laya_社区 发布时间: 20230703
...代码如下: var div:any = Laya.Browser.document.createElement("div"); this.qrcode = new Laya.Browser.window.QRCode(div,{ width:100, height:100 }); var url:string = "http://layabox.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,this.clickHandler); this.qrcodeSp = new Laya.Sprite()...
来源: Laya3.0_文档 发布时间: 20230629
tweenline label事件诡异 this.timeLine.addLabel("rotate1",0).to(this.godContaner,{rotation:-5},200,null,0) .addLabel("rotate2",0).to(this.godContaner,{rotation:0},200,null,0); this.timeLine.play(0,true); this.timeLine.on("label", this, function(label){ console.log(label) }); 两个问题 1 为...
来源: Laya_社区 发布时间: 20170310
...没有办法实现, 下面是之前flash代码 bitmapData.applyFilter(this._mask, this._mask.rect, zeroPoint, this._colorFilter); sprite.copyPixels(this._base, this._base.rect, zeroPoint); sprite.draw(bitmapData, null, null, this._maskBlendMode); 2016-07-30 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20160730
...2,在场景中加入了鼠标点击事件 Laya.stage.on(Event.MOUSE_DOWN,this,sceneClick); private function sceneClick():void { trace("scene clicked"); } 3,在button上添加按钮功能 button.on(Event.CLICK,this,onBtn); private function onBtn(e:Event):void { e.stopPropagation(...
来源: Laya_社区 发布时间: 20180917
...邀请: 与内容相关的链接 提交 2 个回复 金风 赞同来自: this.xhr.once(Laya.Event.COMPLETE, this, this.CompleteHandler); this.xhr.once(Laya.Event.ERROR, this, this.ErrorHandler); this.xhr.on(Laya.Event.PROGRESS, this, this.ProgressHandler); this.xhr.send(Global.WebHost+this.currentRe...
来源: Laya_社区 发布时间: 20200629
... The requested URL /download/LayaAirIDE_1.7.10_beta.zip was not found on this server. The requested URL /download/LayaAirTS_1.7.10_beta.zip was not found on this server. 麻煩提供檔案到外網,好讓其他開發者下載。 2017-08-29 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20170829
...请问我该怎么写呢? 假设有这两个定时器 Laya.timer.loop(100, this,update); Laya.timer.loop(1000,this,shoot_boss); 我希望关闭第二个定时器,该如何使用clear呢? 谢谢。 2016-07-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...
来源: Laya_社区 发布时间: 20160718