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

大约有 211 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0041 秒)

181. 特效LOADED监听不到 [ 63%]

...ya.stage.bgColor = "#232628"; Laya.loader.load(AniConfPath, Handler.create(this, createAnimation), null, Loader.ATLAS); } private function createAnimation(_e:*=null):void { var ani:Animation = new Animation(); ani.loadAtlas(AniConfPath); // 加载图集动画 ani.interval = 30; // 设置播放间隔...

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

182. 关于骨骼动画的复用问题 [ 62%]

...sets/FBX/zj_nan_01/boy@animation-idle_show.lani",LayaWrap.creatHandlerCall(this,(aniClip)=>{ //创建动作状态 let state1 = new Laya.AnimatorState(); //动作名称 state1.name = "hello"; //动作播放起始时间 state1.clipStart = 0 / 90; //动作播放结束时间 state1.clipEnd = 90/ 90; ...

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

183. 怎么获取Skeleton下模型的大小 [ 62%]

...邀请: 与内容相关的链接 提交 1 个回复 赵滔 赞同来自: this._skeleon.play(0); //需要设置一次先才能获取大小   var boundsW: number = skeleon.getBounds().width; var boundsH: number = skeleon.getBounds().height; 2019-06-17 0 0 分享 微博 QZONE 微信 为什么被折叠...

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

184. Skeleton骨骼动画内存泄漏 [ 62%]

...ton; private onKeyDown(e):void{ if(e.keyCode == 49 || e.keyCode == 97){ if(this.te == null){ this.te = new Laya.Templet(); this.te.on(Laya.Event.COMPLETE, this, this.teComplete); this.te.loadAni("res/wing_01_side.sk"); } } else if(e.keyCode == 50 || e.keyCode == 98) { if(this.te != null){ this.te.de...

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

185. 图集打包后使用Texture不显示啊 [ 62%]

...start.json", type: Loader.ATLAS}); Laya.loader.load(assets, Handler.create(this, this.onComplete)); } private onComplete(): void { } } new GameMain();   ================================================================================================ json文件和代码都贴上来了 2017-03-29 添...

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

186. laya图片路径问题 [ 61%]

...ublic/test/img/food/f9.png", ];    Laya.loader.load(urls, Handler.create(this, onAssetLoaded), Handler.create(this, onLoading, null, false), Loader.TEXT);   这个样能加载。 但是 var roleAni = new Laya.Animation();  roleAni.loadImages();  roleAni.play();  Laya.stage.addChild(roleAni); ...

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

187. 分享:如何为spine(龙骨)动画添加CLICK事件! [ 61%]

...unction startFun() { mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.loadAni("res/spine/spineRes2/goblins.sk"); } function parseComplete() { mArmature = mFactory.buildArmature(1); mArmature.x = 100; mArmature.y = 200; var rect=new Laya.Rectangle(-200,-200,300,300...

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

188. 3D粒子编辑模块 · LayaAir3.0文档 · LAYABOX [ 61%]

... ret; } //粒子特效初始化 private Init(file_path:string): void { if (this._isInited) { return; } this._filePath = file_path; console.log("Particle3D"); //从拿到的粒子系统克隆一个 var res = Laya.loader.getRes(file_path); var particle = res.clone(); this._particle = particle; //获...

来源: Laya3.0_文档 发布时间: 20240117

189. 请问在LayaAir中怎么样初始化加载jquery文件?? [ 61%]

...LayaAir中以后动画的速度就变了. 之前的方法也试过了( this.skill2.setinterval = 10)效果不好。请问有没有什么其他的办法。改变动画播放的速度? qian • 2018-01-25 16:51 你的动画到底是2D还是3D LM20081991 • 2018-01-25 16:53 @qian: 3D的模型 An...

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

190. discard property,please use transform's property instead [ 61%]

...,             "res/LayaMonkey.lh"         ], Laya.Handler.create(this, onComplete));         var _quaternion = new Laya.Quaternion();         Laya.timer.frameLoop(1, null, function () {             Laya.Quaternion.createFromYawPitchRoll(0.025, 0, 0, _quaternion);         ...

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