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

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

181. 百度小游戏的5M本地包动态资源加载(TypeScript-小游戏适配文档-百度小游戏) [ 76%]

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

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

182. 版本管理什么用 [ 76%]

...rray = [                 { url: Laya.ResourceVersion.manifest["res/atlas/loading.json"], type: Laya.Loader.ATLAS },                 { url: Laya.ResourceVersion.manifest[utils.resourcesCenter.ResourcesPathStr.PROTO_FILE_PATH], type: Laya.Loader.TEXT },             ];  手动修...

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

183. 微信小游戏在真机上网络动态加载资源的问题 [ 76%]

...Path = Laya.URL.basePath = ""; //加载图集 Laya.loader.load([ {url:"res/atlas/comp.atlas", type: Laya.Loader.ATLAS}, ], new Laya.Handler(this, this.onLoad)); 版本是1.7.19 2018-09-21 添加评论 已悬赏1元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 内容相关的...

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

184. 在 tiledmap 插入一个精灵在上面 [ 76%]

... init():void{   Laya.init(800, 700, Laya.WebGL);   Laya.loader.load("res/atlas/images.atlas",Laya.Handler.create(this,this.onLoaded),null,Laya.Loader.ATLAS); }   onLoaded(){   console.info("onLoaded");   this.tiledMap = new Laya.TiledMap();   this.tiledMap.createMap("desert.json", new Laya.Rec...

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

185. UI图片资源不显示 [ 76%]

...y1234123 赞同来自: json文件没加载到 Laya.loader.load([{url: "res/atlas/**.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); 像这样加载一下,再打开界面 2017-02-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发...

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

186. 【已解决】 sprite无法加载图片 [ 76%]

...50k],建议开始页面单独建立文件夹打包) Laya.loader.load("res/atlas/UI.atlas", null) chatLayer = new Sprite(); chatLayer.loadImage("chat.png"); Laya.stage.addChild(chatLayer); } 2018-04-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 内容...

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

187. 关于用LayaAir引擎IDE开发HTML5游戏的js注册页面(5)课件变动ui,编译后样式混乱问题 [ 76%]

...赞同来自: 这个问题是以前加载的是.json文件 现在改成了.atlas ​你要是不想改代码 f9改图片类型把代码里加载.json的改成.atlas 两种解决办法 不过推荐还是用.atlas 2018-01-30 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要...

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

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

...。如下例所示: ```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

189. load 跨域请求 [ 76%]

load 跨域请求 Laya.loader.load(resUrl+'bin/res/atlas/dice.json', Laya.Handler .create(this, this.init), null, Laya.Loader.ATLAS); 这个json提示跨域了,怎么解决好 2017-07-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 内容相关的...

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

190. 微信小游戏图集接口sendAtlasToOpenDataContext报错。 [ 75%]

微信小游戏图集接口sendAtlasToOpenDataContext报错。 更新了1.7.20.1 beta的引擎后,用这个接口把加载后的json文件路径传过去,就报这个md5的错误。 附件 : --> 2018-08-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请:...

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