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

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

1201. 特效LOADED监听不到 [ 54%]

...ght / 2); ani.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.stage.addChild(ani); } } }你也可以加个延迟,延迟调用下ani的宽高再试下,如果还不行,可以提供下你的例子,我们看下 2017-06-28 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被...

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

1202. HTMLDIVElement设置innerHTML时报错 [ 54%]

...os(500, 300); html.size(html.contextWidth, html.contextHeight); Laya.stage.addChild(html); setTimeout(function() { html.innerHTML = ''; }, 300);此问题是由于在新版中改变了laya.html.js的HTMLDivElement中width的set方法 之前的版本中,set方法为/** *获取对象的宽 */ __getse...

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

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

...交 2 个回复 hj 赞同来自: var logo = new Laya.Sprite(); 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.wi...

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

1204. IDE创建的UI 层级问题 [ 54%]

...到角色層的 Sprite,再將角色添加到角色層的 Sprite( RoleSP.addChild( Role ) )。 2017-08-31 1 0 分享 微博 QZONE 微信 aaawanxiao 赞同来自: leeone 设置zOrder 关系来解决 2017-08-31 1 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 你说的UI编辑的层级不会...

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

1205. Animation的createFrames为何加载不了有的图集资源 [ 54%]

..."], "bb") var g:Animation = new Animation; g.play(0,true,"bb"); Laya.stage.addChild(g); } } } /* 同样都是图集打包文件 char_wudang01下的资源会在创建动画模板时报错,而通过异步加载则可以解决这个问题,而monsterbeattack下的资源不通过异步加载也能...

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

1206. 图片通过drawTexture平铺出现缝隙 [ 54%]

...Texture平铺出现缝隙 this.darwSprite = new Sprite();         this.addChild(this.darwSprite);         var t: Texture = Laya.loader.getRes("load/0.png");         this.darwSprite.graphics.drawTexture(t,0,0);         this.darwSprite.graphics.drawTexture(t,176,0);         this.da...

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

1207. 图集打包后使用Texture不显示,项目整个已经传上来了 [ 54%]

...r sp = new Laya.Sprite(); sp.graphics.drawTexture(texture,0,0); Laya.stage.addChild(sp); var ani: Laya.Animation = new Laya.Animation(); ani.loadAtlas("res/start.json"); // 加载图集动画 ani.interval = 30; // 设置播放间隔(单位:毫秒) ani.index = 1; // 当前播放索引 ani.play(...

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

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

...ETE, this, function(){ var roleAni = roleTemp.buildArmature(1); Laya.stage.addChild(roleAni); }) roleTemp.loadAni('res/spine/knight/effect1.sk'); SK动画已经预加载了:Laya.loader.load(['res/spine/knight/effect1.png', 'res/spine/knight/effect1.sk'], Handler.create(this, init));

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

1209. [LayaAir3]OPPO小游戏下图片地址无法加载 [ 54%]

...=> { let sp = new Laya.Sprite(); sp.texture = res; sp.pos(0, 200); this.addChild(sp); });无法正常显示 检查发现 qg.downloadFile  报 error {         "errCode": -3,         "statusCode": 404,         "errMsg": "com.nearme.instant.loopj.android.http.HttpResponseException" } ...

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

1210. Templet资源删除不掉 [ 54%]

...           swordman.play(0, true);             Laya.stage.addChild(swordman);              swordman.pos(width / 2,  height / 2);             Laya.timer.frameOnce(100, this, unload);         }         private function unload() : void         {  ...

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