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

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

341. layacmd 问题 [ 63%]

....2" 能生成main.min.js 但是没压缩混淆 还有用工具导出的res\atlas 和 用工具导出的json 文件大小也会不一样   还有一个错误 不知道是啥玩意 附件 : --> 2017-10-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

342. 当使用Image作为一个对象的遮罩时,设置Image的ScaleX为0时遮罩失效! [ 63%]

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

343. 如何用代码控制panel的vscroll滚动幅度 [ 63%]

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

344. .ani文件能预加载吗? [ 63%]

.ani文件能预加载吗? atlas和png都是预加载的,结果发现还有个.ani文件,想预加载它,否则播放特效延迟啊。 //播放模块remove特效 var ani:Animation = new Animation(); ani.loadAnimation("ani/TX001.ani"); //动画播放完的事件 ani.on(Laya.Event.COMPLETE,t...

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

345. MiniAdpter.nativefiles 设置本地加载altlas、json、fnt等文件类型无效 [ 63%]

...载altlas、json、fnt等文件类型无效 MiniAdpter.nativefiles = ['xxx.atlas', 'xxx.json', 'xxx.fnt']Laya2.2.0beta2,当设置以上文件为本地加载时,没有效果,如果是图片声音等文件,没有问题。Laya2.1.1及以前的版本一切正常,希望能改回来,谢谢~ 20...

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

346. 使用laya官方示例代码制作微信小游戏无法显示 [ 62%]

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

347. tiledMap类createMap()创建地图 如何理解这个viewRect视口区 [ 62%]

...的时候调用destory销毁地图         tiledMap.createMap("res/atlas/TiledMap/desert.json", viewRect, new Handler(this, completeHandler));     } /**      * 地图加载完成的回调      */     function completeHandler()     {          //设置缩放中心...

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

348. 分享-js资源进度加载 [ 62%]

...示帧频信息 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

349. 富文本使用图集 [ 62%]

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

350. 优化文字图集,复用webGlCharImage [ 62%]

...aya的图集只能是.png吗? 如何加载图集、销毁图集(images.atlas,images.json,images.png),如何获取图集里面的小图 问题状态 最新活动: 2019-10-23 15:52 浏览: 1027 关注: 1 人

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