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

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

31. 跳转场景后laya.core.js就报Cannot read property 'width' of null的错误 [ 79%]

....core.js:1410)     at ResInfo.__proto.event (laya.core.js:1166)     at LoaderManager.__proto._endLoad (laya.core.js:14880)     at Loader.onLoaded (laya.core.js:14850)     at EventHandler.__proto.runWith (laya.core.js:1409)     at Loader.__proto.event (laya.core.js:1166)     at Loader.__p...

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

32. Laya.loader.load 如何同时加载图片数组以及json图集 [ 79%]

Laya.loader.load 如何同时加载图片数组以及json图集 Laya.loader.load([{url: "res/atlas/images/fesh.json", type: Loader.ATLAS}, {url: "res/atlas/images.json", type: Loader.ATLAS},{url: "res/atlas/common.json", type: Loader.ATLAS}, {url: "res/atlas/template/ButtonTab.json", type: Loader.A...

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

33. TileMap有明显的bug [ 79%]

...2.3.0发布微信小游戏,自动缓存:查找不到资源问题的Bug Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug 问题状态 最新活动: 2019-01-02 15:17 浏览: 438 关注: 1 人

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

34. 关于Laya.loader.load和getRes的问题 [ 79%]

关于Laya.loader.load和getRes的问题 我正在阅读这个示例:https://layaair.ldc.layabox.co ... Image  以下是原文的代码,也是我疑问的地方:// 方法2:使用drawTexture Laya.loader.load("../../../../res/apes/monkey2.png", Handler.create(this, function():void { var t:Te...

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

35. Animation 的createFrames 使用已经加载的图集缓存动画失败 [ 79%]

...了,地址当然不正确了,导致无法下载.代码大致如下: Laya.loader.load('player/player.json',Laya.Handler.create(this, this.onLoaded),null); ----onComplate: Laya.Animation.createFrames(['player-left.png'], "walk-left"); 2016-06-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

36. 脚本复制到新项目,gameConfig.ts 总自动追加错误路径 [ 78%]

...= = 调用 Laya.MiniAdpter.downLoadFile缓存文件之后。再调用Laya.loader.create,不会自动去读取缓存文件 官网文档真的太垃圾了了,错误百出,真想知道你们真的认真运行过那些例子了吗?很多连截图给文字都对不上 问题状态 最新活动: 202...

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

37. 分享:LayaAir下如何获取图集下的小图资源? [ 78%]

...import laya.display.Animation; import laya.display.Sprite; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Handler; public class Main { public function Main() { //初始化引擎 Laya.init(600, 800); //加载引擎需要的资源 Laya.loader.load([{url:"res/atlas/atlas_res.js...

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

38. 将字节数组转为图片 [ 78%]

...yte layaAir端加载了img.byte文件后如何还原为图片?flash端的loader有个loadBytes方法可以加载字节数组,但是layaAir端没有相关方法实现 2017-04-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

39. 微信资源加载问题 [ 78%]

... 我加载几十张图片,图片在外网服务器上面,然后我用loader加载 Laya.loader.load(resArr, Laya.Handler.create(null, function () { var a = new Laya.Image('comp/bg.png') Laya.stage.addChild(a) }), Laya.Handler.create(null, function (value) { console.log('加载进度:' + value) ...

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

40. 模型资源释放 [ 77%]

...放资源**/ private function assetsDispose(assetsUrl:String):void { Laya.loader.clearRes(assetsUrl); //加载盘释放的资源配置表 Laya.loader.load([{url:assetsUrl,type:Loader.JSON}], Handler.create(this,onAssetsOK,[assetsUrl])); } /**加载资源释放表完成后**/ private function onAsset...

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