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

大约有 710 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0062 秒)

441. laya.d3.core.scene.Scene3D [ 45%]

...事件类型是否是鼠标事件。 EventDispatcher  load(url:String, complete:Handler):void[static] 加载场景,注意:不缓存。 Scene3D loadImage(url:String, complete:Handler = null):Sprite 加载并显示一个图片。相当于加载图片后,设置texture属性 注意:2.0改动:...

来源: Laya2.0_api 发布时间: 20190513

442. Spine适配版(TypeScript-LayaAir基础篇(TS)-动画基础) [ 44%]

...etBinary(); this.templet.loadAni(this.aniPath); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError) } private parseComplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos(...

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

443. 2.13版本 官方救命啊,关于3D特效的资源释放 [ 44%]

...方大大你好,我先说明一下流程: 通过 Laya.loader.create(url, complete); 加载 3D 特效文件 并且缓存 源对象 , 当前或下次 直接从源对象 克隆一个 3D特效 出来 进行 添加到场景里 当怪物全部死亡时 会进行特效文件的回收 先遍历场景里存...

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

444. 使用createFrames创建的图集动画。如何单独修改这个缓存动画播放速度 [ 44%]

...容器中 this.addChild(body); //增加动画播放完成监听 body.on("complete", this, this.onPlayComplete); } //播放当前状态的动画 this.playAction("fly"); } 2017-04-20 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 wwyybb1 ...

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

445. Spine适配版(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 44%]

...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

446. 请引擎开发人员不要在用这种写法了 [ 44%]

... (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

447. 使用对象池重复使用skeleton报错,请问有解决方案吗?谢谢 [ 43%]

...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

448. Skeleton骨骼动画内存泄漏 [ 43%]

...{ 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

449. 提示“AtlasResourceManager:Dispose the inner Atlas。” [ 43%]

...) { 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

450. 微信小游戏资源总是加载旧的资源 [ 43%]

...来自: 我也遇到这个问题,josn加载到后PNG没加载到,然后complete事件就不触发了,官方请看一下 2018-05-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 vvv123 相关问题 关于...

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