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

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

441. 照着官方文档写的 Dialog 报错? [ 82%]

...this._container = new Sprite(); Laya.stage.addChild(this._container); Laya.loader.load(["../bin/res/ui/progressBar.png", "../bin/res/ui/progressBar$bar.png"], Handler.create(this, this.onPreloaded)); }; LoadResource.prototype.onPreloaded = function () { this.initLoadData(); }; LoadResource.prototype...

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

442. 预加载图集文集在小游戏端导致内存过高 [ 82%]

...y: Array<any> = [ { url: hyip+"res/atlas/comp/01_shouye.json", type: Loader.ATLAS }, { url: hyip+"res/atlas/comp/02_zhujiemian.json", type: Loader.ATLAS }, { url: hyip+"res/atlas/comp/30_loading.json", type: Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded1...

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

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

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

444. ios load后 声音播放问题 [ 82%]

...; resurls.push({url:"http://192.168.6.132:8900/bin/comp/tap.mp3",type:Laya.Loader.SOUND});Laya.loader.load(resurls, Handler.create(this, onLoaded), Handler.create(this, onLoading, null, false)); function onLoaded(){ console.log(Laya.loader.getRes(src)); }   在chrome,安卓下都是正常的,...

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

445. xxx.load() [ 82%]

...能不能做优化一下,直接填数据也可以用。 比如原来Laya.loader.load('role.atlas',..) 。这样也可以Laya.loader.load({"frames":{atack0.png:...}},..) ; 2018-05-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

446. 载入场景报错 [ 82%]

...ra 和light,所有代码如下 import Handler=laya.utils.Handler; import Loader=laya.net.Loader; // 程序入口 class GameMain { constructor() { Laya.init(600, 400); Laya.stage.scaleMode = Laya.Stage.SCALE_EXACTFIT; Laya.stage.screenMode = Laya.Stage.SCREEN_VERTICAL; Laya.stage.alignH = Laya.Stag...

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

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

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

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

448. 全局安装layaair2-cmd报错怎么办啊 [ 82%]

...s/fs.js:1:37) npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1101:14) npm ERR!     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) npm ERR!     at Module.load (node:internal/modules/cjs/loader:981:32) npm ERR!     at Function.Module._load (node:...

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

449. 为什么不能加载多个模型 [ 82%]

...神们如何在场景内添加多个lm的文件。我按照文档中 Laya.loader.create("LayaScene_layabox/Library/unity default resources-Quad.lm",Laya.Handler.create(this,this.onCreateComplete)); Laya.loader.create("LayaScene_layabox/Library/unity default resources-Capsule.lm",Laya.Handler.create(...

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

450. 小游戏项目 加载有中文的json文件 报错 [ 82%]

...引擎 Laya.init(600, 400); var url:String = "res/json/Sheet1.json"; Laya.loader.load(url, Handler.create(null, onJsonLoaded,[url]), null, Loader.JSON); } private static function onJsonLoaded(url:String,data:Object):void { var arr:Array = data.Sheet1; Laya.loader.clearRes(url); } 微信开发者工...

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