大约有 370 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0045 秒)
Laya_社区(320) Laya2.0_文档(33) Laya3.0_文档(8) Laya2.0_示例(3) Laya_示例(3) Laya3.0_api(2) Laya2.0_api(1)
...sevennqi public function BBB() { Laya.init(550,400); Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { var json:JSON=Laya.loader.getRes("res/atlas/comp.json"); }JSON的解析和AS3的是一样的 2016-10-27 2 0 分享 微...
来源: Laya_社区 发布时间: 20161027
...也可以用图集打包动画帧图片的方式,创建后缀名为“`.atlas`”的图集资源,然后赋给动画类去加载使用。 本篇将对图集动画的制作方式进行介绍,如图1所示,示例中实现了图集动画中常用的操作。 (图1) #...
来源: Laya2.0_文档 发布时间: 20210715
...口 Laya.init(400, 400, Laya.WebGL); let res:any = []; res.push({url:"res/atlas/comp.atlas", type:Loader.ATLAS}); Laya.loader.load(res, Handler.create(null, this.__onLoaded)); } private __onLoaded(): void { Laya.stage.addChild(new Test()); } } new Entry(); Test.ts import Sprite = Laya.Sprite; cla...
来源: Laya_社区 发布时间: 20180308
... var res:Array<any> = [ "res/atlas/heart.atlas", "res/LayaScene_newScen/Conventional/newScen.ls", ]; //设置progress Handler的第4个参数为true,根据加载文件个数获取加载进度 ...
来源: Laya_社区 发布时间: 20201130
...haractors.json", Handler.create(this, this.createCharacters), null, Loader.ATLAS); } createCharacters() { characterGroup = []; for(let i = 0; i = 0; --i) { this.animateCharactor(characterGroup[i]); } } animateCharactor(charactor) { charactor.x += moveSpeed; charactor.rotation += rotateSpeed; if (cha...
来源: Laya2.0_示例 发布时间: 20251130
ATLAS 打包可否選擇是JPG圖集還是PNG圖集 一般按下導出都會產生atlas、png、json檔,能夠選擇讓導出時是atlas、jpg、json檔嗎? 有些圖不需要透空效果,打包成JPG格式會比PNG格式小上許多。 2017-07-26 添加评论 免费帖 --> 分享 微博 QZON...
来源: Laya_社区 发布时间: 20170726
...ed(null); return; } 而type 是 atlas __proto.onLoaded=function(data){ //add by yeyq, 检查是否正在下载,避免网页reload this.event("progress",0); var type=this._type; if (type=...
来源: Laya_社区 发布时间: 20200427
...后得到的数据是空的 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.xml", type:Laya.Loader.BUFFER} ], Laya.Handler.create(this, this.onLoaded)); ...
来源: Laya_社区 发布时间: 20190726
...ray = [{url : "games/game_13/shakeask_bg.jpg"}, {url : "res/atlas/games/game_13/image.atlas"} ]; Laya.loader.load(loadArray, Handler.create(null, ()=>{ this.uiView = new SharkItOff(); Laya.stage.addChild(this.uiView); })); 先加载图集,图集加载完再new一个界面。...
来源: Laya_社区 发布时间: 20180327
请问如何释放atlas和他的png资源 很头疼 得不到名字啊! 请问这个有什么规律吗 坐等! private function clickFun():void { url = "res/CH/atlas/MORNUI_Z_Gongneng.atlas"; Laya.loader.load(url,new Handler(this,hh)); //trace( Laya.loader.getRes(url) ); } private function hh()...
来源: Laya_社区 发布时间: 20171206