大约有 353 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0064 秒)
... console.log("线段数量:", wayList.length); this.mainScene.addChild(pl); for (let i = 1; i < wayList.length; i++) { pl.addLine(wayList[i - 1], wayList[i], Laya.Color.RED, Laya.Color.RED); } 2019-1...
来源: Laya_社区 发布时间: 20180426
...es("LayaScene_effect/effect.lh")); effect3D.once( Event.LOADED , this,function(sprite){ var child=effect3D.getChildAt(0); } ); sfsmmc • 2017-08-21 15:53 我试过,在loader.create预加载资源完成后,通过 Laya.loader.getRes("LayaScene_effect/effect.lh") 是不会触...
来源: Laya_社区 发布时间: 20170821
...uildArmature(1); skeleton.pos(400,600); skeleton.on(Laya.Event.MOUSE_DOWN, this, dragFunc); Laya.stage.addChild(skeleton); skeleton.play(0,true); rectangle = skeleton.getBounds(); var hitArea = new Laya.HitArea(); var graphic = new Laya.Graphics(); graphic.drawRect(-rectangle.x, -rectangle.y, rectan...
来源: Laya_社区 发布时间: 20171114
...function init():void { Laya.loader.load("../res/zy/zy.json",Handler.create(this,onLoadedSource),null,Loader.ATLAS); } private function onLoadedSource():void { roleAni = new Animation(); playActions(); } 2、你打包图集的时候,.json文件的prefix键是没有值的,这个是因为你直...
来源: Laya_社区 发布时间: 20170821
...SoundChannel = Laya.SoundManager.playSound(url, loops, Laya.Handler.create(this, () => { resolve(soundChannel); }), soundClass, startTime); }); } 我使用Promise封装了一下音效播放,正常使用await播放没啥的问题,可以做同步异步转换,出问题是的使用await 的时...
来源: Laya_社区 发布时间: 20180124
...a.loader.load("resources/916.mp4").then(() => { this.play(); }); }) }同时建议您将“项目设置->缩放模式”更改为fixedwidth,便于手机调试。完整的demo及效果已放置附件中。 2023-10-09 0 0 分享 微博...
来源: Laya_社区 发布时间: 20231007
... showTips1; //带参数的自定义鼠标提示 clip.toolTip = new Handler(this,showTips2, ["clip"]); } private function showTips1():void { _testTips.label.text = "这里是按钮[" + btn1.label + "]"; tip.addChild(_testTips); } private function showTips2(name:String):void { _testTips.label.text = "...
来源: Laya3.0_api 发布时间: 20231115
...on Laya.loader.load([{url: "res/Image.json", type: "plf"}], Handler.create(this, function():void { //在回调里,正常使用原来的图集 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, function():void { var img:Texture = Laya.loader.getRes("comp/comp.png"); var sp:Sprite = new S...
来源: Laya2.0_文档 发布时间: 20210714
...nction这样定义:function (){if(arguments.length>0&&"return this"===arguments[arguments.length-1])return function(){return e}} Chrome和预览里面的Function这样定义:function Function() { [native code] } 2018-03-07 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 用这...
来源: Laya_社区 发布时间: 20180302
...试Unity导出Anim后用Laya运行时_handleSpriteOwnersByClip函数中抛this._clips[clipIndex]._nodes为null的访问异常,Unity版本为2017.2.0f3,Laya引擎版本为1.7.13,请大神帮忙看看是怎么回事 TestAnim.rar 2018-01-03 3 4 分享 微博 QZONE 微信 cuixueying 赞同来自: ...
来源: Laya_社区 发布时间: 20170428