大约有 708 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0045 秒)
Laya_社区(372) Laya3.0_api(110) Laya2.0_api(105) laya_api(67) Laya2.0_文档(26) Laya2.0_示例(10) Laya3.0_文档(9) Laya_示例(9)
...方大大你好,我先说明一下流程: 通过 Laya.loader.create(url, complete); 加载 3D 特效文件 并且缓存 源对象 , 当前或下次 直接从源对象 克隆一个 3D特效 出来 进行 添加到场景里 当怪物全部死亡时 会进行特效文件的回收 先遍历场景里存...
来源: Laya_社区 发布时间: 20221010
...容器中 this.addChild(body); //增加动画播放完成监听 body.on("complete", this, this.onPlayComplete); } //播放当前状态的动画 this.playAction("fly"); } 2017-04-20 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 wwyybb1 ...
来源: Laya_社区 发布时间: 20170420
...TempletBinary(); this.templet.loadAni(this.aniPath); this.templet.on(Event.COMPLETE, this, this.parseComplete); this.templet.on(Event.ERROR, this, this.onError) } private function parseComplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton....
来源: Laya2.0_文档 发布时间: 20210715
... (laya.core.js:18943) at Function.checkNext (laya.core.js:18926) at Loader.complete (laya.core.js:18919) shiyang • 2020-09-09 16:45 最好不要用匿名的handler,用个变量存一下,destroy的时候回收一下是最安全的 shiyang • 2020-09-09 16:46 我都是根据微信的后台报错...
来源: Laya_社区 发布时间: 20200909
...es/spine/spineRes1/dragon.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.on(Event.ERROR, this, onError); mFactory.loadAni(mAniPath); } function onError() { trace("error"); } function parseComplete() { Laya.stage.on(Event.CLICK, this, () => { ...
来源: Laya_社区 发布时间: 20181120
...{ 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.destroy(); this.te = null; this.sk.destroy(); this.sk = null; } } } priv...
来源: Laya_社区 发布时间: 20190320
...) { var self = this; var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,completeHandler); xhr.once(Laya.Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); function completeHandler(data){ var url = Laya.Browser.window.URL.createObjectURL(data);//创...
来源: Laya_社区 发布时间: 20170825
...来自: 我也遇到这个问题,josn加载到后PNG没加载到,然后complete事件就不触发了,官方请看一下 2018-05-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 vvv123 相关问题 关于...
来源: Laya_社区 发布时间: 20180505
...ROGRESS,this,this.onProgress); //数据传输中 this.http.once(Laya.Event.COMPLETE,this,this.onComplete); //数据传输完成后,会返回一个data this.http.once(Laya.Event.ERROR,this,this.onError); //数据传输失败后返回 //post数据的写法 console.log(JSON.stringify(request)); this....
来源: Laya_社区 发布时间: 20180315
.../* * 场景资源 */ this.m_info_bg = null; this.m_gun_root = null; this.m_complete = null; /* * 战场数据 */ this._NormalBattleInfo = null; this._InfiniteBattleInfo = null; this._zombie_info_obj = null; this.m_fight_2d_root.destroy();//销毁场景 this.m_fight_2d_root = null; this.m_cur_...
来源: Laya_社区 发布时间: 20191102