大约有 302 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0051 秒)
...年了至今无解答 let aniEffConfPath = './res/atlas/comp.atlas' Laya.loader.load(aniEffConfPath, Laya.Handler.create(this, this.onLoaded)) onLoaded(){ // Laya.ClassUtils.regClass('ui.TestPUI', ui.TestPUI) var efc = new ui.TestPUI(); Laya.stage.addChild(efc); } 按照官方文档,运行后报...
来源: Laya_社区 发布时间: 20210111
...tChildAt(13) as MeshSprite3D; var texture:Texture2D = Loader.getRes("res/heightMap.png") as Texture2D; //通过高度图纹理和最大高度最小高度生成MeshTerrainSprite3D var terrainSprite:MeshTerrainSprite3D = MeshTerrainSprite3...
来源: Laya_社区 发布时间: 20170505
...nt.__proto.parseFont (http://127.0.0.1:61385/game/code.js:803:17) at Loader.__proto.onLoaded (http://127.0.0.1:61385/game/code.js:12700:11) at HTMLImage.onload (http://127.0.0.1:61385/game/code.js:21213:15) at Image._source._source.onload (http://127.0.0.1:61385/game/code.js:20175:...
来源: Laya_社区 发布时间: 20180306
...f后缀 var o1:Object = { url:u + "/sheet.js?v=" + config.version, type:ResLoader.TXT, size:1}; var o2:Object = { url:u + "/sheet.png?v=" + config.version, type:ResLoader.BMD, size:1}; b.push(o1); b.push(o2); } App.loader.loadAssets(b, new Handler(onLoadAssetsComplete), new Handler(onProgress));好...
来源: Laya_社区 发布时间: 20151217
... src="uploadfile.js"></script> <script src='LayaSample.max.js' loader='laya'></script> </body> </html> test.zip 2017-08-10 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 这个是因为你的图片太大了,你把你的背景图矢量缩小点看看,在...
来源: Laya_社区 发布时间: 20170810
...ecovery • 2021-11-15 18:42 改成这样试试看 onEnable(): void { Laya.loader.load("comp/image.png", Laya.Handler.create(this, this.onResReady)); } private onResReady() { let panel = new Laya.Panel(); Laya.stage.addChild(panel); panel.graphics.drawRect(0, 0, 300, 300, "#ffcccc&quo...
来源: Laya_社区 发布时间: 20211108
... content && (this._data=content); if (this._cache)Loader.cacheRes(this._url,this._data); this._customParse=false; this.event("progress",1); this.event("complete",(this.data instanceof Array)? [this.data] :this.data); } ...
来源: Laya_社区 发布时间: 20180101
... = function(type){ this.width = 180; this.height = 21; var texture1 = Laya.loader.getRes("res/hp_bg.png"); var texture2; switch (type) { case Hp.HP_TYPE_ENERGY: texture2 = Laya.loader.getRes("res/en_bar.png"); break; case Hp.HP_TYPE_SPEED: texture2 = Laya.loader.getRes("res/hp_bar.png"); break; } th...
来源: Laya_社区 发布时间: 20160803
...) { if (window.navigator.userAgent.indexOf('MiniGame') < 0) { Laya.Laya.loader.load(fileUrl, callBack); } else { if (fileType == Laya.Loader.IMAGE || fileType == Laya.Loader.SOUND) MiniFileMgr.downOtherFiles(fileUrl, callBack, fileUrl, true, false); else MiniFileMgr.downFiles(fileUrl, encoding, c...
来源: Laya_社区 发布时间: 20200103
...下载呢? 回复:缓存文件列表的记录一旦被删除,如果Loader的文件队列存的记录也被清理掉,这个时候再使用的话,会重新下载。 问题二:当前正在使用的资源会不会在这种超过阀值的情况下被删除。 回复:正常情况下如果项...
来源: Laya_社区 发布时间: 20250401