• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 370 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0045 秒)

101. 请问laya里如何解析json,似乎和AS3的不太一样。 [ 75%]

...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

102. 图集动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 75%]

...也可以用图集打包动画帧图片的方式,创建后缀名为“`.atlas`”的图集资源,然后赋给动画类去加载使用。 本篇将对图集动画的制作方式进行介绍,如图1所示,示例中实现了图集动画中常用的操作。 ![动图1.gif](img/1.gif)(图1) #...

来源: Laya2.0_文档 发布时间: 20210715

103. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 75%]

...口 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

104. Laya.loader.create()真机不能加载3D资源,加载图片和音频可以,打开调试也没问题 [ 75%]

...      var res:Array<any> = [              "res/atlas/heart.atlas",             "res/LayaScene_newScen/Conventional/newScen.ls",         ];          //设置progress Handler的第4个参数为true,根据加载文件个数获取加载进度 ...

来源: Laya_社区 发布时间: 20201130

105. 性能测试-卡通人物 [ 75%]

...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

106. ATLAS 打包可否選擇是JPG圖集還是PNG圖集 [ 74%]

ATLAS 打包可否選擇是JPG圖集還是PNG圖集 一般按下導出都會產生atlas、png、json檔,能夠選擇讓導出時是atlas、jpg、json檔嗎? 有些圖不需要透空效果,打包成JPG格式會比PNG格式小上許多。 2017-07-26 添加评论 免费帖 --> 分享 微博 QZON...

来源: Laya_社区 发布时间: 20170726

107. Laya.loader加载BUG [ 74%]

...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

108. fairygui 生成的二进制文件在头条界面加载后得到的数据是空的 [ 74%]

...后得到的数据是空的 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

109. 关于资源加载的问题 [ 74%]

...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

110. 请问如何释放atlas和他的png资源 [ 74%]

请问如何释放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