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

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

21. spine动画,微信模拟器正常,真机动画图片颠倒!!!引擎大bug!!! [ 72%]

...Enter(){ this.img_sample.on(Laya.Event.CLICK, this, this.onImgClick); Laya.loader.load("res/atlas/comp/skeleton.atlas"); //创建动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); this...

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

22. 批量预加载如果是图片或者声音类型,不会触发加载错误事件 [ 72%]

...如果是图片或者声音类型,不会触发加载错误事件 用Laya.loader批量加载图片或者声音并指定加载类型时,如果加载错误,并不会触发错误事件。   Laya.loader.on(Laya.Event.ERROR, this, function(){ console.log("err"); }); Laya.loader.load([{url:"res/gene...

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

23. 如何判断加载资源是否成功? [ 72%]

如何判断加载资源是否成功? Laya.loader.load(["res/book00"+2+".txt"], Laya.Handler.create(this, onLoaded(i))) 2018-04-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: Laya.loade...

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

24. HttpRequest 回调方法都没执行 LayaAir 1.7.17 beta JS版本 [ 69%]

...var resourceArray = [ { url:"res/atlas/comp.atlas" , type : Laya.Loader.ATLAS} ]; Laya.loader.load(resourceArray,Laya.Handler.create(null,loadResourceComplete)); } function loadResourceComplete() { Laya.stage.addChild(new LoginView()); } })(); feiguangfu • 2018-03-16 09:55 这个是主...

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

25. ls场景文件通过Laya.loader.create()预加载后stage.destroyChildren()出现异常Cannot read property 'visible' of null [ 69%]

ls场景文件通过Laya.loader.create()预加载后stage.destroyChildren()出现异常Cannot read property 'visible' of null   附Demo。   想做不同场景之间的切换。 spriteBtn.on(Laya.Event.CLICK, this, function (e) { Laya.stage.destroyChildren(); newScene(); });问题:LayaAirUnityP...

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

26. 有没有Loader预加载 相关的注意事项或者文档 在手机上问题有点多 [ 68%]

有没有Loader预加载 相关的注意事项或者文档 在手机上问题有点多 在电脑上Loader预加载方法都很正常  但是一旦打包成APK安装到手机上 有时会发生异常 Laya.loader.load(skins, Laya.Handler.create(this, fGameLoad), Laya.Handler.create(this, onLoading, ...

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

27. 不存在的资源路径问题 [ 68%]

...,导致这个问题是因为没有资源也调用了加载完成, Laya.loader.on(Laya.Event.ERROR, this, this.onLibError); Laya.loader.load([{ url:com.globals.GameConfig.XML_LIB_URL, type:Loader.BUFFER }], Handler.create(this, this.onLibLoaded)); 资源是不存在的,然后还是调用了 thi...

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

28. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 68%]

...s/layabox.png"); box.meshRender.material = material; //加载3D资源 Laya.loader.create(["res/LayaScene_girl/girl.lh"],Laya.Handler.create(this,this.on3DComplete)); } /*加载3D资源完成回调*/ private on3DComplete():void{ //创建3D角色 //实例化角色 this.role = Laya.loader.getRes("res/L...

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

29. 打包APK运行,drag拖动出现问题;color="#0"程序直接崩溃 [ 67%]

...            Laya.init(1136, 640,WebGL);             Laya.loader.load([GameConfig.getAssetsFile("comp")],Handler.create(this, onComplet));                          }         private var imag:Image;         private function onComplet():void        ...

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

30. 微信小游戏加载资源问题 [ 67%]

...) { if (window.navigator.userAgent.indexOf('MiniGame') < 0) { Laya.Laya.loader.load(fileUrl, callBack); } else { if (fileType == Laya.Loader.IMAGE || fileType == Laya.Loader.SOUND) MiniFileMgr.downOtherFiles(fileUrl, callBack, fileUrl, true, false); else MiniFileMgr.downFiles(fileUrl, encoding, c...

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