大约有 2,661 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0082 秒)
Laya_社区(2342) Laya2.0_文档(106) Laya3.0_文档(59) Laya_示例(52) Laya3.0_api(51) Laya2.0_示例(43) laya_api(4) Laya2.0_api(4)
...) 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
...神们如何在场景内添加多个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
...创建 package { import laya.events.Event; import laya.net.Loader; import laya.utils.Handler; import view.TestView; public class LayaUISample { public function LayaUISample() { //初始化引擎 ...
来源: Laya_社区 发布时间: 20170608
...; 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
....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
...) { 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
...能不能做优化一下,直接填数据也可以用。 比如原来Laya.loader.load('role.atlas',..) 。这样也可以Laya.loader.load({"frames":{atack0.png:...}},..) ; 2018-05-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...
来源: Laya_社区 发布时间: 20180510
...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
...引擎 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
...的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