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

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

41. clearRes好像没作用,或许我的用法不对 [ 87%]

...         console.log("释放资源false")             Laya.loader.clearRes("res/atlas/comp.json", false);             Laya.loader.clearRes("res/atlas/comp.png", false);         }         if (e.keyCode == 66) {//B             console.log("释放资源 tru...

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

42. 如何显示动画ani [ 87%]

...成了.ani 文件,可是怎么在主页面上显示啊。 教程中 Laya.loader.load("./res/atlas/ui.atlas",Handler.create(this,onLoaded));这个ui.atlas 死活没看见啊。   代码复制了,不行 啊,坑在哪里???? package{import laya.net.Loader;import laya.utils.Handler;import...

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

43. 按钮加载皮肤丢失 [ 87%]

...码 先预加载 skinsSecond.push( { url:"allResources/qfbutton.png", type:Loader.IMAGE }); 然后就是一些和服务器交互的操作了,在接到某一条数据,需要用到资源的时候的代码; for (var i:Number = 0; i < allArea.length;i++) {                 var but:Bu...

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

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

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

45. 游戏系怎么把一些共用的功能独立出来 [ 86%]

...JS 如:  var atlas:Object[] = [{ url: "res/atlas/choujiang.js", type: Loader.TEXT },                             { url: "res/atlas/choujiang.json", type: Loader.ATLAS },         ];         Laya.loader.load(atlas, Handler.create(this, this.onLoaded), Handler.create(this, this...

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

46. 游戏加载进度失效 [ 86%]

...文本 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[4] = { url: "res/atlas/ui.json...

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

47. 报错 Laya 的标识符中重复 [ 86%]

...e.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 添加评论 免费帖 --> 分享 微博 Q...

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

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

...新编译。 请教一个关于laya2.5d项目美术规范的问题哈 Laya.Loader.getRes请教 微信小程序canvas如何使用layaAir引擎 请问下loader如何强制加载一个文件,避免浏览器的缓存 Animation 的createFrames 使用已经加载的图集缓存动画失败 我用list.ar...

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

49. loadAnimation无法获取动画文件 [ 86%]

...   "res/atlas/role/monster/monsterA/move.atlas"         ];   Laya.loader.load(aniArr, Handler.create(this, onAni), null, Loader.ATLAS);   private function onAni():void {     var role:SimpleRole = new SimpleRole();     Laya.stage.addChild(role); }       SimpleRole类:   public fun...

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

50. 请问在设计模式下制作的UI页面,到底怎么在代码里使用???官方教程不一样 [ 85%]

...图片资源的atlas文件,何解???例如官方的例子:Laya.loader.load(["./res/atlas/ListPage.atlas", "res/atlas/template/ButtonTab.atlas"], Handler.create(this, this.onLoaded)); 而我F12发布,根本没有这个ListPage.atlas,只有ButtonTab.atlas     附件 : --> 2017-09-04 ...

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