大约有 5 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0023 秒)
...(type:String, data:* = null):Boolean 派发事件。 EventDispatcher getAtlas(url:String):Array[static] 获取指定资源地址的图集地址列表。 Loader getRes(url:String):*[static] 获取指定资源地址的资源。 Loader hasListener(type:String):Boolean 检查 EventDispatcher 对...
来源: laya_api 发布时间: 20170929
...toonCharactors.json", Handler.create(this, createCharacters), null, Loader.ATLAS); })(); function createCharacters() { characterGroup = []; for(var i = 0; i = 0; --i) { animateCharactor(characterGroup[i]); } } function animateCharactor(charactor) { charactor.x += moveSpeed; charactor.rotation += rot...
来源: Laya_示例 发布时间: 20260303
...; } } } // 程序入口 Laya.init(600, 400); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //示例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); }// TestView.as package { import game...
来源: Laya_示例 发布时间: 20260303
...ader.load(AniConfPath, Handler.create(this, createAnimation), null, Loader.ATLAS); })(); function createAnimation() { var ani = new Animation(); ani.loadAtlas(AniConfPath); // 加载图集动画 ani.interval = 30; // 设置播放间隔(单位:毫秒) ani.index = 1; // 当前播放索引 ani.pl...
来源: Laya_示例 发布时间: 20260303
...源是否已经加载完毕。 注意:cache参数只能对文件后缀为atlas的资源进行缓存控制,其他资源会忽略缓存,强制重新加载。 LoaderManager event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher getRes(url:String):* 获取指定资源地址...
来源: laya_api 发布时间: 20170929