大约有 491 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0095 秒)
...GameMain{ constructor() { Laya.init(1280,720); Laya.loader.load([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS}],Laya.Handler.create(this,this.loaded,null)); } private loaded():void{ var img:Laya.Image = new Laya.Image(); img.skin = "comp/img_pro.png"; Laya.stage.addChild(img); var imgMask:Laya....
来源: Laya_社区 发布时间: 20170327
.ani文件能预加载吗? atlas和png都是预加载的,结果发现还有个.ani文件,想预加载它,否则播放特效延迟啊。 //播放模块remove特效 var ani:Animation = new Animation(); ani.loadAnimation("ani/TX001.ani"); //动画播放完的事件 ani.on(Laya.Event.COMPLETE,t...
来源: Laya_社区 发布时间: 20180615
... { Laya.init(600,600); Laya.stage.bgColor='#EEFFCC'; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { //panel 切记设置宽高,否则panel不显示 var panel:Panel=new Panel(); panel.size(300,300); panel.pos(100,100); p...
来源: Laya_社区 发布时间: 20170719
...载altlas、json、fnt等文件类型无效 MiniAdpter.nativefiles = ['xxx.atlas', 'xxx.json', 'xxx.fnt']Laya2.2.0beta2,当设置以上文件为本地加载时,没有效果,如果是图片声音等文件,没有问题。Laya2.1.1及以前的版本一切正常,希望能改回来,谢谢~ 20...
来源: Laya_社区 发布时间: 20190805
...示帧频信息 Laya.Stat.show(); //加载进度ui var arr = [{ url: "res/atlas/Progress.json", type: Laya.Loader.ATLAS }]; Laya.loader.load(arr, Laya.Handler.create(this, this.onProgress)); } onProgress() { this.Progress = new Progress(); Laya.stage.addChild(this.Progress); //加载资源进度并...
来源: Laya_社区 发布时间: 20171217
...urceVersion.FILENAME_VERSION); function beginLoad(){ Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); } function onLoaded(): void { //实例UI界面 new laya.UI_Label(); } 上图为在layaIDE中的显示效果。 不知道具体是什么原因,希望得到大家的...
来源: Laya_社区 发布时间: 20180529
...der.load("res/1.json", Handler.create(this, createAnimation), null, Loader.ATLAS); public function createAnimation():void { var appendHtml:HTMLDivElement=new HTMLDivElement(); appendHtml.innerHTML="aa==<ani src='res/1.png'></ani>"...
来源: Laya_社区 发布时间: 20180309
...的时候调用destory销毁地图 tiledMap.createMap("res/atlas/TiledMap/desert.json", viewRect, new Handler(this, completeHandler)); } /** * 地图加载完成的回调 */ function completeHandler() { //设置缩放中心...
来源: Laya_社区 发布时间: 20180612
...aya的图集只能是.png吗? 如何加载图集、销毁图集(images.atlas,images.json,images.png),如何获取图集里面的小图 问题状态 最新活动: 2019-10-23 15:52 浏览: 1027 关注: 1 人
来源: Laya_社区 发布时间: 20191022
...this.swimpoolani=new Laya.Animation(); //this.init(); this.swimpoolani.loadAtlas("./res/atlas/Comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ Laya.Animation.createFrames([swimpoorpath01,swimpoorpath02],"swimpoolani"); Laya.stage.addChild(this.swimpoolani); this...
来源: Laya_社区 发布时间: 20190805