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

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

241. 播放动画(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 65%]

...态 ani.play("attack"); //等待动画播放完成 Laya.timer.frameLoop(1,this,function():void{ //如果当前播放state已经播放完了一次 if(ani.getCurrentAnimatorPlayState().normalizedTime >= 1){ //回到站立状态 ani.play("stand"); } }); } ``` ![](img/6.gif)(图6)

来源: Laya2.0_文档 发布时间: 20210715

242. 预设对象池回收后再创建报错 [ 65%]

...预设变量{Laya.loader.create("prefab/预设名字.json",Handler.create(this,onComplete));}private function onComplete(obj:Object):Void{一个预设变量.json = ojb一个sprite = Pool.getItemByCreateFun("自己起一个名字", this.一个预设变量.create, this.一个预设变量);} 2020-01-04...

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

243. 背景循环帧黑屏(飞机大战) [ 65%]

背景循环帧黑屏(飞机大战) Laya.timer.frameLoop(1,this,this.onLoop); 调看了半天,一直卡这里,这行放进去就黑屏 谢谢哪位解答下。 附件 : --> 2017-08-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

244. 只播放一次获取回调需要Event.STOPPED [ 65%]

...的链接 提交 1 个回复 Apple 赞同来自: xxx.on(Laya.Event.STOPPED,this,this.onStop); function onStop(){     //你的代码 } 2018-04-04 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 ssss111 相关问题 配置layaAir需要注...

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

245. timeline 类动作节点回调 [ 65%]

..., alpha:1},2000,null,0); timeLine.play(0,true); timeLine.on(Event.COMPLETE,this,this.onComplete); timeLine.on(Event.LABEL, this, this.onLabel); } function onComplete() { console.log("timeLine complete!!!!"); } function onLabel(label) { console.log("LabelName:" + label); }少年 没仔细看官方的...

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

246. 位图切片组件 · LayaAir3.0文档 · LAYABOX [ 65%]

...和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.clip.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); // 位置 this.clip.skin = "atlas/comp/clip_num.png"; // 皮肤 this.clip.interval = 1000; // 切片动画的播放时间间隔1000毫秒 this.clip.clipX...

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

247. Uncaught 无法实例class PhysicsCollider extends PhysicsTriggerComponent [ 65%]

...LLFILTER) {         super(collisionGroup, canCollideWith);         this._enableProcessCollisions = false;     }     _addToSimulation() {         this._simulation._addPhysicsCollider(this, this._collisionGroup, this._canCollideWith);     }     _removeFromSimulation() {        ...

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

248. list 加载动画为什么实现的效果会错乱掉? [ 65%]

...乱掉? var WID = 80, HEI = 400; function Item1() { Item1.__super.call(this); this.size(WID, HEI); this.setImg = function(src) { var ani = new Animation(); ani.loadAtlas(src); // 加载图集动画 ani.interval = 100; // 设置播放间隔(单位:毫秒) ani.index = 1; // 当前播放索引 ...

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

249. 如何安全删除龙骨动画? [ 65%]

如何安全删除龙骨动画? private completeHandler():void { // this.play(); this.mArmature.destroy(true); }如图所示,使用官方例子在播放完毕后里面销毁会报错. 报错位置为: 这里的_player为null 据观察 好像此时龙骨动画并未播放完毕,在stage中还有残...

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

250. Laya.Video内存泄漏问题 [ 65%]

...er.load([{url: video_url, type: Laya.Loader.BUFFER }], Laya.Handler.create(this, createVideo)); var v; function createVideo() { var video_file = new Blob([Laya.loader.getRes(video_url)], {type: 'video/webm'}); var blob_url = URL.createObjectURL(video_file); var video = new Laya.Video(); video.loop =...

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