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

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

431. 微信小游戏报错 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

432. 为什么不能加载多个模型 [ 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

433. 分享: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

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

435. laya.core.js报错:value._addReference is not a function [ 82%]

....core.js:1410)     at ResInfo.__proto.event (laya.core.js:1166)     at LoaderManager.__proto._endLoad (laya.core.js:14880)     at Loader.onLoaded (laya.core.js:14850)     at EventHandler.__proto.runWith (laya.core.js:1409)     at Loader.__proto.event (laya.core.js:1166)     at Loader.__p...

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

436. version.json版本文件会加载缓存的,看了源码也没有忽略缓存 [ 82%]

...) {             ResourceVersion.type = type;             ILaya.loader.load(manifestFile, Handler.create(null, ResourceVersion.onManifestLoaded, [callback]), null, Loader.JSON);         } load没有设置忽略缓存   应该 static enable(manifestFile, callback, type = 2) {      ...

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

437. xxx.load() [ 82%]

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

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

438. 鼠标交互-拖动 [ 82%]

...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(ApePath, Handler.create(this, setup)); })(); function setup() { createApe(); showDragRegion(); } function createApe() { ape = new Sprite(); ape.loadImage(ApePath); Laya.stage.addChild(ape); var texture = Laya.load...

来源: Laya_示例 发布时间: 20251218

439. 小游戏项目 加载有中文的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

440. 使用IDE打包图集工具出来的atlas,调用clearRes无法卸载资源 [ 82%]

...的atlas,调用clearRes无法卸载资源 加载时时这样调用 Laya.loader.load("res/MainBlood.atlas", Laya.Handler.create(this, this.onAtlasLoaded), null, Laya.Loader.ATLAS); 卸载时这样 Laya.loader.clearRes("res/MainBlood.atlas");在Laya.Loader.loadedMap里查找是没有了,但是统...

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