大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0089 秒)
Laya_社区(2466) Laya2.0_文档(107) Laya3.0_文档(62) Laya_示例(52) Laya3.0_api(51) Laya2.0_示例(43) laya_api(4) Laya2.0_api(4)
...游戏加载不了,路径没问题,麻烦看下 加载代码 Laya.loader.load([ { url:"res/Bag_atlas0.png", type:Laya.Loader.IMAGE }, { url:"res/Bag_atlas0_1.png", type:Laya.Loader.IMAGE}, { url:"res/Bag.json", type:Laya.Loader.BUFFER} ...
来源: Laya_社区 发布时间: 20200429
...ng, Laya.stage.width + padding * 2, Laya.stage.height + padding * 2); Laya.loader.load(texturePath, Handler.create(this, this.onTextureLoaded)); } onTextureLoaded() { maggotTexture = Laya.loader.getRes(texturePath); this.initMaggots(); Laya.timer.frameLoop(1, this, this.animate); } initMaggots() { l...
来源: Laya2.0_示例 发布时间: 20260816
... var arr:Array = new Array(); Laya.loader.load("test.json", Handler.create(this, onLoaded), null, Loader.ATLAS); //var json:JSON = Loader.getRes("test.json"); //trace(json); } ...
来源: Laya_社区 发布时间: 20170413
...的资源地址。</p> * <p>因为返回值为 LoaderManager 对象本身,所以可以使用如下语法:Laya.loader.load(...).load(...);</p> * @param url 要加载的单个资源地址或资源信息数组。比如:简...
来源: Laya_社区 发布时间: 20180502
...ayaair-cmd-compile.js:14:1) at Module._compile (internal/modules/cjs/loader.js:678:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10) at Module.load (internal/modules/cjs/loader.js:589:32) at tryModuleLoad (internal/modules/cjs/loader.js:528:12) ...
来源: Laya_社区 发布时间: 20180514
在加载多个资源的时候,加载进度异常 Laya.loader.load(["res/atlas/images.atlas", "res/atlas/f1.atlas", "res/atlas/f2.atlas", "res/atlas/f3.atlas", "res/atlas/f4.atlas", "res/atlas/f5.atlas"], Laya.Handler.create(this, function(){ }), Laya.Handler.create(this, function(e){ c...
来源: Laya_社区 发布时间: 20180101
...看下,谢谢啦,贴上代码。 package { import flash.display.Loader; import flash.display.LoaderInfo; import flash.display.MovieClip; import flash.display.Sprite; import flash.display.StageAlign; import flash.display.StageScaleMode; import flas...
来源: Laya_社区 发布时间: 20170317
...我们可以用加载器预加载。 2D游戏资源我们是用**Laya.loader.load()**方法预加载,而3D资源必须用Laya.loader.create()这个方法。在加载完成后,我们就可以直接使用**Laya.loader.getRes()**这个方法来获取加载完成的资源。请参考的相关的...
来源: Laya2.0_文档 发布时间: 20210715
...载一个txt文件 getRes出来类型为string 能转换成数组吗 Laya.loader.load("res/text.txt", Handler.create(this, onAssetLoaded1), null, Loader.TEXT); var pic1 = Loader.getRes("res/2D特效/text.txt"); console.log(typeof pic1); 输出的类型为string 2017-06-20 添加评论 免费帖 --> ...
来源: Laya_社区 发布时间: 20170620
...ame('achieve'); // 这样可以解析 没有问题 但是 通过 xml =Laya.loader.getRes("res/Config/text.xml"); var doc = XMLParser.parseFromString(xml) var a = doc.getElementsByTagName('achieve'); 就会进入死循环 读取本地文件 这块 小游戏通过什么来读取? 2018-08-28 添加...
来源: Laya_社区 发布时间: 20180828