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

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

281. 动效问题,没有 ui.TestPUI,官方文档是错的,几年了至今无解答 [ 47%]

...年了至今无解答 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

282. 3D中如何限制角色的行走区域? [ 47%]

...tChildAt(13) as MeshSprite3D;               var texture:Texture2D = Loader.getRes("res/heightMap.png") as Texture2D;               //通过高度图纹理和最大高度最小高度生成MeshTerrainSprite3D               var terrainSprite:MeshTerrainSprite3D = MeshTerrainSprite3...

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

283. 微信小游戏IDE加载位图字体,提示错误 [ 46%]

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

284. Laya怎么使用雪碧图(spritesheet)? [ 46%]

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

285. layaair1.78版本 textarea和textinput在电脑平台时一点击整个canvas往上移动。 [ 45%]

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

286. Panel初始化BUG [ 45%]

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

287. 微信小游戏中加载unity导出的场景报错the .lh file root type must be Scene [ 45%]

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

288. 【简单跑酷--JS版】---Lv.6 终篇 [ 44%]

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

289. 微信小游戏加载资源问题 [ 44%]

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

290. [LayaAirIDE3]微信小游戏资源加载失败,提示"删除错误记录:xxxx" [ 42%]

...下载呢? 回复:缓存文件列表的记录一旦被删除,如果Loader的文件队列存的记录也被清理掉,这个时候再使用的话,会重新下载。 问题二:当前正在使用的资源会不会在这种超过阀值的情况下被删除。 回复:正常情况下如果项...

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