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

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

1001. 【laya2.0】加载并且显示图片,并且让该图片居于舞台中央,怎么写? [ 52%]

...te(); Laya.stage.addChild(logo); logo.loadImage("res/atlas/test.png", Laya.Handler.create(this, function(){ console.log("complete!!"); logo.x= Laya.stage.width/2-logo.width/2; logo.y= Laya.stage.height/2-logo.height/2; //logo.pos(Laya.stage.width/2-logo.width/2,Laya.stage.height/2-logo.height/2); })...

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

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

...    tiledMap.createMap("res/atlas/TiledMap/desert.json", viewRect, new Handler(this, completeHandler));     } /**      * 地图加载完成的回调      */     function completeHandler()     {          //设置缩放中心为左上角         tiledMap.setView...

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

1003. 动画加载成功后设置的描点,在电脑上运行正常,打包APK后到手机上运行,描点未生效 [ 52%]

...,描点未生效 if(anin==null)anin=new Animation(); anin.loadAtlas(url,Handler.create(this,onloaded),url); anin.autoSize=true; anin.autoPlay=false; anin.interval=interval;   private function onloaded():void { anin.pivotX=anin.getBounds().width/2; anin.pivotY=anin.getBounds().height/2; }   如...

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

1004. 按钮加载皮肤丢失 [ 52%]

...       /**加载资源*/             Laya.loader.load(skins,Handler.create(this,loadComplete)); 2017-03-20 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 相关问题 加载到舞台的3D模型不显示贴图 laya2.0加载3d场景报...

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

1005. 加载sk文件时,报Uncaught getUint16 error - Out of bounds [ 52%]

...ader.load(['res/spine/knight/effect1.png', 'res/spine/knight/effect1.sk'], Handler.create(this, init));

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

1006. 请问laya.net.Loader和laya.net.LoaderManager哪些函数支持网络资源加载,加载什么类型?哪些只支持本地资源加载 [ 52%]

...果 Laya.loader.load("https://piggy.q1.com/res//atlas/images.atlas", Laya.Handler.create(this, this.onLoaded2), null, Laya.Loader.ATLAS); // Laya.loader.load("map/tile_map.png");   2018-05-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

1007. playSound和playMusic结束时候有异常抛出 [ 52%]

...der.load("res/music/Music_start.mp3",                      Laya.Handler.create(this, this.onLoadFinished));     }     onLoadFinished()     {         Laya.SoundManager.playMusic("res/music/Music_start.mp3", 1);     } } new GameMain();   ----------------------------------------...

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

1008. list和cell如何联系 [ 51%]

...list呢?我看list 和cell 之间可以发生联系的地方只有renderHandler和设置itemRender?如何处理这个需求呢? 2017-01-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来...

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

1009. Laya.load在OPPO小游戏端无法加载带有不安全字符的图片网址 [ 51%]

...rl = "https://lupic.cdn.bcebos.com/2 ... 3B%3B Laya.loader.load(_url, Laya.Handler.create(this, res => { let a = new Laya.Image(_url); Laya.stage.addChild(a); })) 以下是安卓层面输出日志:09-22 11:08:10.811 27895-28111/? D/jswrapper: JS: [WARN]: [warn]Retry to load: https://lupic.cdn.b...

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

1010. laya.ui.Dialog [ 51%]

...中心线的距离(以像素为单位)。 Component  closeEffect : Handler 关闭对话框效果,可以设置一个效果代替默认的关闭效果,如果不想有任何效果,可以赋值为null 全局默认关闭效果可以通过manager.closeEffect修改 Dialog  closeHandler : Hand...

来源: laya_api 发布时间: 20170929