大约有 486 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0043 秒)
.../LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, function () { var aniSprite3d = layaMonkey.getChildAt(0); var animator = aniSprite3d.getComponentByType(Laya.Animator); animator.play(null, 1.0, 75, 110); }); var _position = new Laya.Vector3(); var _quaternion = new La...
来源: Laya_示例 发布时间: 20251130
...时是直接调用的 Laya.SoundManager.playSound(url, 1, new Laya.Handler(this, this.onComplete)); 但因为很多音效都是属于重复播放,而这个playSound()方法会返回一个SoundChannel,所以我就尝试用了一个dictionary把这些SoundChannel都保存起来,下次播放时如果...
来源: Laya_社区 发布时间: 20180628
...er_png"); var mc_data = ResLoad.getInstance().getAtlasUrl("tiger_sk"); this.mFactory = new Laya.Templet(); this.mFactory.parseData(Laya.loader.getRes(mc_png),Laya.loader.getRes(mc_data)); this.skeleton = this.mFactory.buildArmature(1); 使用下面代码更换骨骼插槽纹理,无法更新...
来源: Laya_社区 发布时间: 20170120
...kinModel/Zombie/new/Zombie.lh")); zombie.once(Laya.Event.HIERARCHY_LOADED, this, function () { //获取Animator动画组件 zombieAnimator = zombie.getChildAt(0).getComponentByType(Laya.Animator); loadUI(); }); function loadUI() { var clipName = ["walk","attack","left_fall","right_fall","back_fall"]...
来源: Laya_示例 发布时间: 20251130
...腳色 Laya.Scene3D.load( "res/build5/SampleScene.ls", Laya.Handler.create(this, this.onComplete) ); //射线初始化(必须初始化) this._ray = new Laya.Ray( new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0) ); //初始化变量 this.point = new Laya.Vector2(); this._outHitResult = new La...
来源: Laya_社区 发布时间: 20200917
...资源版本控制 ResourceVersion.enable("version.json", Handler.create(this, beginLoad), ResourceVersion.FILENAME_VERSION); } private function beginLoad():void { //加载引擎需要的资源 // Laya.l...
来源: Laya_社区 发布时间: 20180828
.../LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, function () { var aniSprite3d = layaMonkey.getChildAt(0); var animator = aniSprite3d.getComponentByType(Laya.Animator); animator.play(null, 1.0, 115, 150); }); var _quaternion = new Laya.Quaternion(); var _position = ne...
来源: Laya_示例 发布时间: 20251130
...play的第二个参数是true,监听mArmature.player.on(Event.COMPLETE,this,onComplete);即可 如果play的第二个参数是false,监听mArmature.on(Event.STOPPED, this, completeHandler);即可! 2017-08-07 1 0 分享 微博 QZONE 微信 cuixueying 赞同来自: sketon.player.on(Event.COMP...
来源: Laya_社区 发布时间: 20170802
...DOWN, () => { Laya.loader.load("resources/layaAir.mp4").then(() => { this.video.play(); //播放视频 }); }) } } 如果是在LayaAir IDE中运行,则VideoNode无需通过事件触发播放。但是在Chrome中,自动播放只允许静音自动播放。只有用户进行交互(单击、...
来源: Laya3.0_文档 发布时间: 20251010
... 就是play的问题。你在loadAnimation加载完成的回调里调用了this.player.play("fly");这个参数填错了,你把APlayer这个类里边调play的地方注释掉看下就知道了 rayln • 2017-07-10 13:38 感谢你的及时回答,问了如此2B的问题,谢谢! rayln...
来源: Laya_社区 发布时间: 20170710