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

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

271. 找不到对应的资源 [error]Failed to load: res/atlas/standUp/aa.json [ 51%]

...,而不是发布出来的图集再放到资源面板下!你可以看下comp.json,资源面板与发布资源后的对比!

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

272. 在微信小游戏中使用BitmapFont会导致报错. [ 51%]

...BitmapFont('Name', timerFont);         Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded));     })); }  function onLoaded(): void {     //实例UI界面     var testUI: TestUI = new TestUI();     Laya.stage.addChild(testUI); } 附件 : --> src.rar 2018-0...

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

273. 模仿教程里的打地鼠写的代码,运行报错 [ 51%]

...Laya.stage.bgColor = "#ffcccc"; //加载资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function onLoaded(){ //实例化 var tempBG=new background(); Laya.stage.addChild(tempBG); } })();在background.js里是这样写的 var background ...

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

274. 关于canvas下资源释放的问题 [ 51%]

...图集地址或者texture地址,比如 Loader.clearTextureRes("res/atlas/comp.atlas"); Loader.clearTextureRes("hall/bg.jpg");              */         public static function clearTextureRes(url:String):void { 2018-04-25 0 0 分享 微博 QZONE 微信 w1114367261 赞同来自: 你是...

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

275. 在加载多个资源的时候,加载进度异常 [ 51%]

...18 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: {url:"res/atlas/comp.atlas"} 这样的形式,加上 url:  再用大括号括起来 2018-01-02 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 lichengb...

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

276. laya.display.Node [ 50%]

...置。 Node  addChildren(... args):void 批量增加子节点 Node  addComponent(type:Class):* 添加组件。 Node  addComponentIntance(comp:Component):* 添加组件实例。 Node  addInputChild(node:Node):NodeNode  callLater(method:Function, args:Array = null):void 延迟运行指定的...

来源: Laya2.0_api 发布时间: 20190513

277. dialog 里的数据已经获取到了,也赋值了但是页面没跟新,addChild好像无效果 [ 50%]

...d']; var foodtxt = res.data[X]['n_number']; fooddata[X] = { food: { skin: 'comp/food' + foodid + '.png' }, food_txt: { text: foodtxt } // console.log(); } } console.log('+++++++++++++++++++') console.log(_super); console.log(fooddata); self.foodList.dataSource = fooddata;  //实例化角色容器 v...

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

278. 关于资源加载的问题 [ 50%]

....FILENAME_VERSION); function beginLoad(){ Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); } function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); } 并没有getRes操作。我按这样子写法就不行

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

279. socket.sent [ 50%]

...stage.screenMode = Laya.Stage.SCREEN_NONE; var uiResArr =[ {url:"res/atlas/comp.atlas",type: Laya.Loader.ATLAS}, ]; Laya.loader.load (uiResArr , Laya.Handler.create(this,this.onLoded));      //加载图片 this.byte = new Laya.Byte(); //这里我们采用小端 this.byte.endian = Laya.Byte.LITTL...

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

280. 发布时勾选重新生成图集会生成分辨率错误的图集导致图集错乱 [ 50%]

...就是图集的分辨率不对。附件已经给了,请注意res/atlas/comp.png 这张图的分辨率,比正确的图宽和高都多了像素 lookdczar • 2017-12-31 23:21 另外一个人也和我出现了一样的问题 https://ask.layabox.com/question/10105 lookdczar • 2017-12-31 23:32 后...

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