大约有 360 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0043 秒)
Laya_社区(289) Laya2.0_文档(36) Laya3.0_文档(20) Laya2.0_示例(4) Laya_示例(4) Laya3.0_api(3) laya_api(2) Laya2.0_api(2)
...omp.atlas?version=1.0.0", type: Loader.ATLAS };Laya.loader.load(obj); 引擎自动加载的png地址是res/atlas/comp.png, 而不是res/atlas/comp.png?version=1.0.0 这个能不能解决(一个项目加载另一个项...
来源: Laya_社区 发布时间: 20180427
... var imgArr = ; imgArr.push({url:"cont/cpf1.jpg",type:Loader.IMAGE}); imgArr.push({url:"cont/cpr1.jpg",type:Loader.IMAGE}); imgArr.push({url:"cont/cps1.jpg",type:Loader.IMAGE}); imgArr.push({url:"cont/cpt1.jpg",type:Loader.IMAGE}); ...
来源: Laya_社区 发布时间: 20160815
...``typescript if(Laya.Browser.onMiniGame){ //加载一个json和图集 Laya.loader.load(["json/reward.json","res/atlas/test.atlas"],Laya.Handler.create(null,function(){ //加载完成 //使用接口将图集透传到子域 Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); //使用...
来源: Laya2.0_文档 发布时间: 20210715
...SCREEN_HORIZONTAL; //显示帧频信息 Laya.Stat.show(); //预加载 Laya.loader.load(this.arr, Laya.Handler.create(this, this.onAssetLoaded), Laya.Handler.create(this, this.onLoading, null, false), Laya.Loader.ATLAS); }; //加载完成后 p.onAssetLoaded = function() {}; //加载进度 p.onLoading...
来源: Laya_社区 发布时间: 20170803
...。 ```typescript if(Browser.onMiniGame){ //加载一个json和图集 Laya.loader.load(["json/reward.json","res/atlas/test.atlas"],Handler.create(this,function(){ //加载完成 //使用接口将图集透传到子域 MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); //使用接口将jso...
来源: Laya2.0_文档 发布时间: 20210715
...``typescript if(Laya.Browser.onMiniGame){ //加载一个json和图集 Laya.loader.load(["json/reward.json","res/atlas/test.atlas"],Laya.Handler.create(null,function(){ //加载完成 //使用接口将图集透传到子域 Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); //使用...
来源: Laya2.0_文档 发布时间: 20210715
...I DocumentationAll Packages | All Classes | Index | Frames No Frames LoaderProperties | Methods | Events | Constants Packagelaya.netClasspublic class LoaderInheritanceLoader EventDispatcher Object Loader 类可用来加载文本、JSON、XML、二进制、图像等资源。 Public Properti...
来源: laya_api 发布时间: 20170929
...览: 3508 关注: 3 人 逸辰 • 2023-07-19 22:52 onAwake(): void { Laya.loader.load( //先加载本场景要用的 ["resources/UI/image.png", "resources/UI/progress.png", "resources/UI/progress$bar.png","resources/UI/images/dsgame/banner2.jpg"] ).then(() =&...
来源: Laya_社区 发布时间: 20230713
...量加载json文件,然后等这些文件统一加载完后回调 看了Loader类的用法好像只能加载单一文件,LoaderManager用于批量加载可官网没有DEMO,并不知道怎么用。有大佬能给出个LoaderManager的使用示例么。或者再详细能否讲下Loader 和 Loade...
来源: Laya_社区 发布时间: 20180518
...nction LoadRes() { var resArray = [ {url: "res/atlas/comp.json",type: Laya.Loader.ATLAS}, {url: "res/atlas/newhfh.json",type: Laya.Loader.ATLAS}, {url: "res/atlas/newhfh2.json",type: Laya.Loader.ATLAS}, ]; Laya.loader.load(resArray, Laya.Handler.create(null, LoadResComplete)) } function LoadResCompl...
来源: Laya_社区 发布时间: 20170228