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

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

341. 3D场景里面怎么画线条 [ 48%]

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

342. 使用 loader.create 预加载模型后。必须要在回调 Laya.Event.HIERARCHY_LOADED 中获取子元素吗?预加载是预加载的什么部分? [ 48%]

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

343. 龙骨动画-拖拽-点击区域HitArea设置问题 [ 47%]

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

344. 纹理集包含多个动作的时候按照技术文档写出来的不能正常播放呢? [ 47%]

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

345. Laya.SoundManager.playSound()问题,任务不是当前标签停止播放,当任务回到当前标签页,不能恢复播放 [ 47%]

...SoundChannel = Laya.SoundManager.playSound(url, loops, Laya.Handler.create(this, () => { resolve(soundChannel); }), soundClass, startTime); }); } 我使用Promise封装了一下音效播放,正常使用await播放没啥的问题,可以做同步异步转换,出问题是的使用await 的时...

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

346. videoNode在安卓上不能播放 [ 44%]

...a.loader.load("resources/916.mp4").then(() => {                 this.play();             });         })     }同时建议您将“项目设置->缩放模式”更改为fixedwidth,便于手机调试。完整的demo及效果已放置附件中。 2023-10-09 0 0 分享 微博...

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

347. laya.ui.Box_API3.0 [ 40%]

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

348. LayaAir引擎工具会员专属功能介绍(TypeScript-简介篇(TS)-LayaAir引擎简介) [ 40%]

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

349. 微信环境下面Laya.Browser.window.protobuf.load不能读取本地的proto文件 [ 39%]

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

350. LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) [ 22%]

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