大约有 87 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0032 秒)
...动画完成后播放站立动画 shared.on(Event.COMPLETE,this,onAniComplete,[ani]); //播放攻击动画 ani.play(); 在unity里测试正常,导出的时候也生成了 lani文件,和Lm同放在上面的网络地址里,...
来源: Laya_社区 发布时间: 20180118
...bin/res/spine_model/${spine}.sk`); this._factory.on(Laya.Event.COMPLETE, this, this.parseComplete, [x, y]); } private parseComplete(x, y) { this._factory.off(Laya.Event.COMPLETE, this, this.parseComplete); var sprite = this._factory.buildArmature(0); ...
来源: Laya_社区 发布时间: 20161108
... let mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, this.parseComplete,[parent,mFactory]); mFactory.on(Event.ERROR, this, this.onError); mFactory.loadAni(path); } onError() { trace("error"); ...
来源: Laya_社区 发布时间: 20190730
...载事件是否可以监听, 比如类似这样 Laya.stage.on(Laya.Event.COMPLETE, this, this.OnLoadLog); 2017-08-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 资源加载有Event.L...
来源: Laya_社区 发布时间: 20170816
图集动画播放问题 this.ded.play(0, false); this.ded.on(Laya.Event.COMPLETE, this, this.onHitOver); 播放完 "ded" 动画后, 有时候会出现延迟,没有立即运行onHitOver()方法,有什么解决办法吗? 2018-11-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20181101
...ctory = new Laya.Templet(); this.mFactory.on(Laya.Event.COMPLETE, this, this.parseComplete, [aniMode]); this.mFactory.loadAni(url); } private parseComplete(aniMode: number, fac: Laya.Templet): void { this.mArmature = thi...
来源: Laya_社区 发布时间: 20200618
...); })(); function 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,-2...
来源: Laya_社区 发布时间: 20170830
怎么对动画进行毎帧侦听? ani.on(Laya.Event.COMPLETE, this, _OnComplete); function _OnComplete() { var bounds = ani.getGraphicBounds(); console.log(bounds.width); console.log(bounds.height); } 这样的话获取动画宽高 还是只会取到第一帧宽高 并没有办...
来源: Laya_社区 发布时间: 20170704
...会忽略lock=true的资源。 Returns void Static load load(url: string, complete: Handler): void Defined in laya/d3/core/Avatar.ts:35 加载Avatar文件。 Parameters url: string Avatar文件。 complete: Handler 完成回掉。 Returns void Globals "laya/d3/core/Avatar" Avatar constructor destory...
来源: Laya3.0_api 发布时间: 20231102
...容器中 this.addChild(body); //增加动画播放完成监听 body.on("complete", this, this.onPlayComplete); } //播放当前状态的动画 this.playAction("fly"); } 2017-04-20 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 wwyybb1 ...
来源: Laya_社区 发布时间: 20170420