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

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

131. Laya.URL.basePath加载不到网络资源 [ 82%]

Laya.URL.basePath加载不到网络资源 var resArray = [ { url: "res/atlas/images.atlas", type : Laya.Loader.ATLAS}, // { url: "res/swf/flash.json", type: Laya.Loader.JSON}, // { url: "images/background.png", type : Laya.Loader.IMAGE}, ];   Laya.loader.load(resArray, Laya.Handler.create(this, th...

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

132. layaAir IDE UI导出显示异常 [ 81%]

...: 问题已经找到了,是UI编辑器F12导出的时候打包的大图是atlas后缀格式造成的,而默认例子里面加载的是json格式的: Laya.loader.load("res/atlas/comp.json", Handler.create(this, onAssetLoaded), null, Loader.ATLAS);   所有导致了图集位置错乱,麻烦技术修...

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

133. laya微信小游戏加载外部素材失败 急急急 [ 81%]

...自由若水 赞同来自: 加个~试试,即 var resource = { {url:'~res/atlas/game/game.atlas',type:Laya.Load.ATLAS} } 2018-04-26 0 0 分享 微博 QZONE 微信 callback 赞同来自: 附件是 加载demo 代码非常少 可以重现我说的问题    function initLaya() { console.log('Laya.ver...

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

134. Animation模板动画的移除 [ 81%]

...ing 赞同来自:   项目示例代码如下 ani=new Animation(); ani.loadAtlas("res/atlas/atlasLight.json",null,"play"); ani.play(); Laya.stage.addChild(ani);  有的开发者会发现,如果loadAtlas方法使用了模板名称,使用Loader.clearRes无法彻底清理掉animation的所有缓...

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

135. 图集动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 81%]

...也可以用图集打包动画帧图片的方式,创建后缀名为“`.atlas`”的图集资源,然后赋给动画类去加载使用。 本篇将对图集动画的制作方式进行介绍,如图1所示,示例中实现了图集动画中常用的操作。 ![动图1.gif](img/1.gif)(图1) #...

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

136. 游戏加载进度失效 [ 81%]

...dingUI(); //创建加载进度文本 var asset = [] asset[0] = { url: "res/atlas/run.json", type: Laya.Loader.ATLAS } asset[1] = { url: "res/bg.png", type: Laya.Loader.IMAGE } asset[2] = { url: "res/bg1.png", type: Laya.Loader.IMAGE } asset[3] = { url: "res/bg2.png", type: Laya.Loader.IMAGE } asset[...

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

137. IED可视化编辑UI打包的图片无法识别 [ 81%]

... 赞同来自: 你预加载的是.json文件,但是没有指定类型为ATLAS。你也可以在UI编辑模式下F9打开项目设置,把导出类型改为atlas,这样直接预加载.atlas文件就行了,不需要指定图集类型 2017-10-16 0 1 分享 微博 QZONE 微信 为什么被折叠?...

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

138. 报错 Laya 的标识符中重复 [ 80%]

...aleMode = "showall"; Laya.stage.bgColor = "#232628"; var res = [ {url:"res/atlas/loading.json",type:Laya.Loader.ATLAS}, //{url:"res/atlas/loading.png",type:Laya.Loader.IMAGE}, //{url:"res/atlas/loading/01.png",type:Laya.Loader.IMAGE} ]; Laya.loader.load(res); showact(); })(); 2016-12-30 添加评论...

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

139. XMLHttpRequest cannot load [ 80%]

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

140. LayaAri游戏图集还原脚本 [ 80%]

LayaAri游戏图集还原脚本 https://github.com/SmallRuralDog/atlas-restore   # LayaAri游戏图集还原脚本 ### 运行环境 - Python 2.7 - PIL ### 使用方法 ``` # python main.py '还原文件' python main.py ./game.atlas ``` > 注意 : `atlas文件`和`图片文件`需在同一个目...

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