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

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

411. 头条小游戏二进制文件加载失败 [ 83%]

头条小游戏二进制文件加载失败 Laya.loader.load([         { url:"res/Bag.xml", type:Laya.Loader.BUFFER},         { url:"res/Bag_atlas0.png", type:Laya.Loader.IMAGE },         { url:"res/Bag_atlas0_1.png", type:Laya.Loader.IMAGE},                   ], Laya.Handler.c...

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

412. 批量销毁释放内存(JavaScript-3D基础(JS)-LayaAir3D的内存管理) [ 83%]

...的销毁而一起销毁。这些残留下的资源需要分别使用`Laya.loader.getRes(url:String)`接口获取到资源(Resource)对象之后,再调用资源对象的`destroy()`方法进行销毁。但是这种方法是非常麻烦的。LayaAir2.0为了方便开发者,提供了`Resource.d...

来源: Laya2.0_文档 发布时间: 20210715

413. 加载.lh文件报错 [ 83%]

...ed at Function.Laya3D._getSprite3DHierarchyInnerUrls (laya.d3.js:15158) at Loader.Laya3D._onHierarchylhLoaded (laya.d3.js:15252) at EventHandler.__proto.runWith (laya.core.js:1126) at Loader.__proto.event (laya.core.js:882) at Loader.__proto.complete (laya.core.js:14965) at Loader.__proto.onLoaded (...

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

414. laya.core.js中 onLoaded 的建议 [ 83%]

laya.core.js中 onLoaded 的建议 可能表达的不是很清楚 Loader.loadedMap 在 Loader.cacheRes 里赋值, 而在其他调用的地方里只有截图部分(onLoaded里)的url是自己创建的完整路径不是通过URL.formatURL,实际运用时也出现了一些问题(版本号相...

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

415. 批量预加载如果是图片或者声音类型,不会触发加载错误事件 [ 83%]

...如果是图片或者声音类型,不会触发加载错误事件 用Laya.loader批量加载图片或者声音并指定加载类型时,如果加载错误,并不会触发错误事件。   Laya.loader.on(Laya.Event.ERROR, this, function(){ console.log("err"); }); Laya.loader.load([{url:"res/gene...

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

416. 图集打包后使用Texture不显示啊 [ 83%]

...=================================================== // 程序入口 import Loader = Laya.Loader; import Texture = Laya.Texture; import Handler = Laya.Handler; class GameMain{ constructor() { Laya.init(1080,1321); //设置适配模式 Laya.stage.scaleMode = "showall"; //设置剧中对齐 Laya.stage....

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

417. 内存释放问题 [ 83%]

...写的释放有什么问题吗?为什么我的内存没有变化,Laya.loader下面的_infoPoll 没有发生变化, public dispose(): void { this.ani.clear(); Laya.Animation.clearCache(this.resUrl); this.ani = null; Laya.loader.clearRes(this.resUrl, true); } 我单独写了一个例子,这样...

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

418. unity 导出文件导入LAYA加载报错 [ 83%]

....runWith (laya.core.js:672) at ResInfo.__proto.event (laya.core.js:449) at LoaderManager.__proto._endLoad (laya.core.js:11511) at Loader.onLoaded (laya.core.js:11490) at EventHandler.__proto.runWith (laya.core.js:672) at Loader.__proto.event (laya.core.js:449) at Loader.__proto.endLoad (laya.core.js...

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

419. LayaNative 2.8.0 加载的TTF字体不生效,附复现工程。 [ 83%]

...网盘手机App,操作更方便哦 望解答。           Laya.loader.load("fonts/OPPOSANS-H.ttf", Laya.Handler.create(this, (success) => {             console.log("2.8.0 字体加载是否成功:", success);             Laya.Text.defaultFont = "OPPOSANS...

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

420. unity导出粒子特效laya加载报错。 [ 83%]

... Function.Laya3D._getSprite3DHierarchyInnerUrls (laya.d3.js:1917)     at Loader.Laya3D._onHierarchylhLoaded (laya.d3.js:1934)     at EventHandler.__proto.runWith (laya.core.js:2062)     at Loader.__proto.event (laya.core.js:1818)     at Loader.__proto.complete (laya.core.js:23571)     at L...

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