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

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

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

...看下上面的链接! JianHao • 2017-04-18 10:59 //加载图集 Laya.loader.load("res/atlas/hero.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) //先把四张小图拿出来 var hero_down1=Laya.loader.getRes("hero/hero_down1.jpg"); var hero_down2=Laya.loade...

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

92. 微信小游戏报错 the .lh file root type must be Scene [ 80%]

...) at ResInfo.__proto.event (http://127.0.0.1:62629/game/code.js:483:28) at LoaderManager.__proto._endLoad (http://127.0.0.1:62629/game/code.js:13152:11) at Loader.onLoaded (http://127.0.0.1:62629/game/code.js:13128:10) at EventHandler.__proto.runWith (http://127.0.0.1:62629/game/code.js:711:59) at L...

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

93. 微信小游戏怎么加载本地的配置文件 [ 80%]

...nfig(){ this.configAsset=[ {url:"res/config/playerCard.json",type:laya.net.Loader.TEXT} ]; Laya.loader.load(this.configAsset,Handler.create(this,this.loadConfigCallBack)) } public loadConfigCallBack(str:boolean){ if(str){ var config; config=laya.net.Loader.getRes("res/config/playerCard.json"); Playe...

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

94. JSON文件加载成功后,怎么解析成Object对象 [ 80%]

...-----------------------package { import laya.display.Text; import laya.net.Loader; import laya.utils.Handler; /** * ... * @author OttoChen */ public class TestMain { private var txt:Text = null; public function TestMain() { Laya.init(800, 800); txt = new Text(); txt.mouseEnabled = false; txt.overflo...

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

95. 分享:IDE使用SWF动画的销毁与反复创建 [ 80%]

...创建 package {     import laya.events.Event;     import laya.net.Loader;     import laya.utils.Handler;     import view.TestView;          public class LayaUISample {                  public function LayaUISample() {             //初始化引擎        ...

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

96. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 79%]

...esInfo.__proto.event (http://127.0.0.1:59022/game/code.js:483:28)     at LoaderManager.__proto._endLoad (http://127.0.0.1:59022/game/code.js:13152:11)     at Loader.onLoaded (http://127.0.0.1:59022/game/code.js:13128:10)     at EventHandler.__proto.runWith (http://127.0.0.1:59022/game/code.js:...

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

97. 如何显示动画ani [ 79%]

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

98. 你们这个API描述错乱了(Laya.loader.create())!!! [ 79%]

你们这个API描述错乱了(Laya.loader.create())!!! 你们这个API描述错乱了(Laya.loader.create()):https://layaair.ldc.layabox.com/api/?category=Core&class=laya.net.LoaderManager#create()     附件 : --> 2017-08-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

99. [0]laya-zip让你的游戏加载速度提升350%!! [ 79%]

...y convention, only resource files in the level-1 directory are loaded Laya.loader.create([{ url: "xx.zip", type:"ZIP"}]) [/size][/code] 如果只需要加载zip包中的部分资源,或者资源路径在多级目录下。可以在constructParams中进行配置,来加载指定文件资源。[size...

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

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

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