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

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

1. 请教——layabox如何加载多个图集 [ 100%]

请教——layabox如何加载多个图集 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onload)); 这样写只能添加一个图集,我想问有没有办法用一句代码同时添加其他图集 2018-08-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

2. 如何使用javascript版本的加载模式 [ 91%]

....json 那我先引用了LayaUI.max.all.js后,再加载ui.json!   Laya.loader.load([ { url: config.layerUIJson, type: Laya.Loader.JSON } ], Handler.create(this, function () { this.gameScenes = new ui.layer.gameScenesUI(); this.addChildren(this.gameScenes); })); 但页面上却没有任何内容...

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

3. Cannot read property 'load' of null [ 89%]

...ayaAir引擎 Cannot read property 'load' of null 查了断点,看到Laya.loader是null,为什么会出现为null的情况?  代码如下: class main{ constructor(){ MapManager.getInstance().LoadMapResource(); } } new main(); class MapManager { private static s_instance = null; public static g...

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

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

...图片资源的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

5. playSound和playMusic结束时候有异常抛出 [ 81%]

playSound和playMusic结束时候有异常抛出 1. loader加载了{url:"res/music/Music_start.mp3",type:Laya.Loader.SOUND}资源 2. 加载结束后,调用Laya.SoundManager.playSound("res/music/Music_start.mp3") 3. 声音播放完成后,系统抛出异常__proto._tryClearBuffer=function(sourceN...

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

6. 通过laya设计模式制作的,要怎么给按钮绑定事件呢? [ 76%]

...olor = "#101825"; this.init() } init() { // 预加载图集 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, this.onLoaded ), null, Laya.Loader.ATLAS) } onLoaded(){ Laya.stage.addChild(new TopUI()) Laya.stage.addChild(new TabUI()) this.getGold.on(Laya.Event.MOUS...

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

7. 在父sprite中添加子sprite ,移动父Sprite 子sprite为什么不动? [ 70%]

...e(); // 守护神 this.angel = new Sprite(); // 加载主体的背景 Laya.loader.load("res/island.png", Handler.create(this, function() { // 图片加载 var t = Laya.loader.getRes("res/island.png"); var tBall = Texture.create(t,866,190,548,305); var tTower = Texture.create(t,data.tower[towerLel].x...

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

8. 示例打地鼠发布打包后提示TypeError: this.preinitialize is not a function [ 50%]

...ackground looper Looper (main, tid 1) {4a7bba70} I/chromium: [INFO:library_loader_hooks.cc(112)] Chromium logging enabled: level = 0, default verbosity = 0 I/BrowserProcessMain: Initializing chromium process, renderers=0 W/chromium: [WARNING:proxy_service.cc(888)] PAC support disabled because there ...

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

9. socket大型项目回调 [ 25%]

...et监听 创建树Tree 该怎么回调mouseHandler 形参该传什么 Laya.loader.create 进度回调函数执行两次 本人想做个批量加载json文件,然后等这些文件统一加载完后回调 怎么停止正在运行Laya.timer.frameLoop的回调函数 Skeleton 类播放完成一遍后...

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

10. 构建apk后,java报错 [ 12%]

...ds_match: Invalid snd_device =  2018-11-26 18:31:47.725 761-4830/? E/ACDB-LOADER: Error: ACDB AudProc vol returned = -19 2018-11-26 18:31:47.964 4749-4838/com.layabox.dotJourney E/LayaBox: >>>>>>>>>>>>>>>>>>>>>>>>>>>&g...

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