大约有 4,103 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0066 秒)
Laya_社区(3324) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...通过类似的代码来声明、获取: private backBtn: Laya.Button; this.backBtn = this.scene.getChildByName('backBtn') as Laya.Button;但这个Rect就不知道是什么类型的了,试了下Laya.Rect/Laya.Graphics.Rect之类的,都没有这个类。 附件 : --> 2019-10-22 1 条评...
来源: Laya_社区 发布时间: 20191022
... x和scaleX或是y和scaleY的顺序问题导致执行问题 Laya.Tween.to(this, { scaleY: 0.6, y: y }, 100);//这个正常执行Laya.Tween.to(this, { y: y ,scaleY:0.6}, 100);//这样就只执行scaleY了,这是什么情况,x也是这样 2018-09-05 添加评论 免费帖 --> 分享 微博 QZON...
来源: Laya_社区 发布时间: 20180905
ogg格式的音效资源怎样加载 this.resUrlArr.push({url:"res/music/1_Pass0.ogg",type:Laya.Loader.SOUND}); this.resUrlArr.push({url:"res/music/1_Pass1.ogg",type:Laya.Loader.SOUND});现在这样写现在pc端没有问题,网页的话加载不了 2017-04-11 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20170411
...听 move事件的话! onMouseDown 中 Laya.stage.on(Event.MOUSE_MOVE, this, onMouseMove); onMouseUp 中 Laya.stage.off(Event.MOUSE_MOVE, this, onMouseMove); 也可以写个变量 ,down的时候为true,否则为false 如"cuixueying" 回答的一样! 2017-04-21 3 0 分享 微博 ...
来源: Laya_社区 发布时间: 20170421
....core.js文件,找到11230行的判断进行修改,如下所示: if (this.url==SoundManager._tMusic){ AudioSound._initMusicAudio(); tAd=AudioSound._musicAudio; //添加下面这一行代码 tAd.src = this.url; } 2017-07-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20170718
....load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); }运行会报错:见图: 求解~! 附件 : --> TestHtml.zip 2017-10-11 添加评...
来源: Laya_社区 发布时间: 20171011
...统? SoundManager.playMusic("../../res/sounds/bgm.mp3", 1, new Handler(this, this.onComplete)); 像这样写的代码,会有很多音效,会不会被自动回收 2018-01-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交...
来源: Laya_社区 发布时间: 20180119
... 华为手机 SoundManager.playSound("GameSound/aa/bb.mp3", 1,new Handler(this,soundComplete,[aa,bb])); 没有音效 上面执行完毕后 不会 执行soundComplete private function soundComplete(aa,bb):void { //执行代码 } 2018-03-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20180314
...回复 bpmf_d 赞同来自: // 失去焦点 Laya.stage.on(Laya.Event.BLUR,this,function(){}); // 获得焦点 Laya.stage.on(Laya.Event.FOCUS,this,function(){}); 可以试试这两个方法如果不行 就请提供一下可以复现的demo 2019-05-09 0 0 分享 微博 QZONE 微信 为什么被折...
来源: Laya_社区 发布时间: 20190509
...playerAnim.loadAtlas("/desktop/atlasSource/playerAtlas",Laya.Handle.create(this,this.onAtlasLoad),"playerAnim"); function onAtlasLoad(){ console.log("图集加载完毕"); Laya.stage.addChild(playerAnim); } 所以我使用json是需要更多的设置吗 2018-06-20 添加评论 免费...
来源: Laya_社区 发布时间: 20180620