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

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

41. 微信小游戏开放域(JavaScript-小游戏适配文档-微信小游戏) [ 81%]

...:`sendSinglePicToOpenDataContext`,`sendJsonDataToDataContext`,`sendAtlasToOpenDataContext`。 下面是使用透传的示例: #### 主域部分节选: 在使用对应文件之前,需要先使用这些接口将 *主域* 加载好的信息透传到子域。这些透传接口是使用的微...

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

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

...在小游戏中加载抽奖程序的全部资源,包括JS 如:  var atlas:Object[] = [{ url: "res/atlas/choujiang.js", type: Loader.TEXT },                             { url: "res/atlas/choujiang.json", type: Loader.ATLAS },         ];         Laya.loader.load(atlas, Handl...

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

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

44. 关于多个小动画打包到一个图集动画的问题 [ 80%]

...名称贴好然后直接使用,然而我把图集的.json跟.png还有.atlas这三个文件拿出来,不用IDE做,去下载一个layaAir引擎,然后用引擎去实现播放这两组动画 cuixueying • 2017-03-30 17:30 一样的,还是通过Animation.createFrames去创建动画,图集...

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

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

...自由若水 赞同来自: 加个~试试,即 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

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

...le.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("释放资源 true")          ...

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

47. 请问laya.net.Loader和laya.net.LoaderManager哪些函数支持网络资源加载,加载什么类型?哪些只支持本地资源加载 [ 79%]

...个Loader所在的包名net,好像是都支持网络资源的加载,但atlas和png放在网络服务器同一个目录里,调用如下代码并没有效果 Laya.loader.load("https://piggy.q1.com/res//atlas/images.atlas", Laya.Handler.create(this, this.onLoaded2), null, Laya.Loader.ATLAS); // L...

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

48. SCALE_FIXED_WIDTH适配屏幕的问题 [ 79%]

...onent("ScaleButton", ScaleButton);             Laya.loader.load("res/atlas/com/loading.atlas", Laya.Handler.create(this, this.loadGame));         }         private loadGame(): void {             var resArray = [                 { url: "res/atlas/lobby/create_room.atlas", ...

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

49. 1.6.2打包的图集不能使用 [ 79%]

...示longtime  。。在断点的情况下。 Laya.loader.load([{url: "res/atlas/longCard.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); 在onLoaded var textrue = Laya.loader.getRes(longcard/xxx.png)总是undedined。。。求解。。。 相关链接 : http://ask.layabox.com/quest...

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

50. 隐藏默认的虚拟键、屏蔽APP窗口弹出脚本错误信息 的问题 [ 78%]

... or false return false; } function LoadRes() { var resArray = [ {url: "res/atlas/comp.json",type: Laya.Loader.ATLAS}, {url: "res/atlas/newhfh.json",type: Laya.Loader.ATLAS}, {url: "res/atlas/newhfh2.json",type: Laya.Loader.ATLAS}, ]; Laya.loader.load(resArray, Laya.Handler.create(null, LoadResComple...

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