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

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

71. 微信小游戏的4M本地包与动态资源加载(TypeScript-小游戏适配文档-微信小游戏) [ 79%]

...。如下例所示: ```json MiniAdpter.nativefiles = [ "wxlocal", "res/atlas/houzi.atlas", "res/atlas/houzi.png", "common/tishi.png", "common/bg.png", "ui.json", "newLb/bg031.png" ]; ``` **只要是MiniAdpter.nativefiles里存在的目录名或文件,引擎会自动将该目录视为本地目录...

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

72. LayaAir IDE 1.7.16beta 图集打包就产生一个.res文件 [ 79%]

...tions/LayaAirIDE_beta.app/Contents/Resources/app/out/vs/layaEditor/libs/TP/atlas-generator" -S 2048 -s 512 "/Users/passionzhang/Develop/wegame/wordwar/laya/assets/comp" -o "/Users/passionzhang/Develop/wegame/wordwar/laya/assets/atlas" --dataFormat json --scale 1 --force newPro.js:1251 nullQCommandLi...

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

73. 资源发布目录以及efc动效获取资源路径的问题。 [ 79%]

...liuhang_1988 • 2017-11-22 11:28 我现在是资源发布目录在bin/res/atlas, html发布目录在bin/res。但是分离模式的efc文件会把json文件输出到bin目录,part文件输出到bin/res。而且,part的资源默认获取路径也是在bin目录下,我是想这个json也输出...

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

74. atlas目录下.json文件与.atlas的区别 [ 78%]

atlas目录下.json文件与.atlas的区别 在编辑模式下按F12导出时,bin/res/atlas下会生成comp.png和comp.atlas文件,但看教学视频中,没有生成.atlas文件,而是生成了.json文件,这两个文件有什么区别,两个文件的内容除了格式外是一样的,...

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

75. 启用版本管理后,Laya.loader.load加载在微信web开发者工具触发不了回调 [ 78%]

...启用版本管理后,文件都带了hash, var resArray = [ {url: "res/atlas/common.atlas", type: Laya.Loader.ATLAS}, {url: "hall/1_login/login_bg.png", type: Laya.Loader.IMAGE}, {url: "hall/1_login/Bottom_article.png", type: Laya.Loader.IMAGE}, {url: "res/atlas/hall/login.atlas", type: Laya.Loa...

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

76. Resources already exist 加载动画资源时候,遇到这个提示 [ 78%]

...集动画, 动画地址是: P:/H5-WorkSpace/LayaTest/bin/res/AAAA/stand/0.atlas (这张atlas是通过2张图片打成的图集, 图片名是0.png和1.png) 2.创建另外一个animation对象, 加载另外一个动画, 地址是 P:/H5-WorkSpace/LayaTest/bin/res/BBBBB/stand/0.atlas (这张atlas也是...

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

77. 请教下微信小游戏的内存和数据缓存? [ 78%]

... 2018-01-22 10:37 let resArray: Array<any> = [ { url: hyip+"res/atlas/comp/01_shouye.json", type: Loader.ATLAS }, { url: hyip+"res/atlas/comp/02_zhujiemian.json", type: Loader.ATLAS }, { url: hyip+"res/atlas/comp/30_loading.json", type: Loader.ATLAS }, ]; Laya.loa...

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

78. 进行预加载,每次进入游戏都会重新加载一次 [ 78%]

...预加载,每次进入游戏都会重新加载一次 ar images = ["res/atlas/" + lang + "/shz_images.png","res/atlas/shz_line.png", "res/atlas/" + lang + "/shz_nav.png"。。。。。。。】 用这个进行预加载 Laya.loader.load(images, null, Laya.Handler.create(this, onImagesProgress, null,...

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

79. XMLHttpRequest cannot load [ 78%]

...42 XMLHttpRequest cannot load file:///F:/Laya/Project/firstGame/bin/h5/res/atlas/comp.json. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.__proto.send @ firstGame.max.js:9742 firstGame.max.js:9137 [warn]Retry to ...

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

80. 按照打地鼠教程来无法正常加载资源 [ 78%]

...      var resArr:Array = [                 {res:"res/atlas/ui.atlas"},                 {res:"res/ui/back.png",type:Loader.IMAGE}             ];             Laya.loader.load(resArr,Handler.create(this,this.onLoaded));         }  ...

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