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

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

1601. 如何知道动画资源全部被加载 [ 79%]

... 请问如何知道 下面全部被加载完成????           this.sk_51.loadAni("bis_51.sk");         this.sk_71.loadAni("bis_71.sk");         this.sk_81.loadAni("bis_81.sk");   2017-09-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...

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

1602. app打包后黑屏 [ 79%]

app打包后黑屏 检查后找到原因是因为这一句:this.graphics.alpha(0.7); 请问是什么原因,项目在下面 附件 : --> layer.rar 2017-02-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuix...

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

1603. 关于新手引导 [ 79%]

...ideContainer.addChild(interactionArea); gameContainer.on(Event.MOUSE_DOWN, this, downHandler); gameContainer.on(Event.MOUSE_UP, this, upHandler); } private function moveHandler():void { interactionArea.graphics.drawCircle(Laya.stage.mouseX, Laya.stage.mouseY, 30, "#ff0000"); } private function upHan...

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

1604. Dialog 关闭效果无效 [ 79%]

...ar CommonDlg = (function (_super) { function CommonDlg() { CommonDlg.super(this); } Laya.class(CommonDlg, "CommonDlg", _super); var _proto_ = CommonDlg.prototype; _proto_.closeEffect = Laya.Handler.create(null, this.onCloseEffect, null, true); _proto_.onCloseEffect = function () { console.log("in on...

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

1605. 如何隐藏tiledMap中指定的GridSprite? [ 79%]

...ction(gridX,gridY){ var tSprite=new GridSprite(); tSprite.relativeX=gridX *this._map.gridWidth; tSprite.relativeY=gridY *this._map.gridHeight; tSprite.initData(this._map); this._gridSpriteArray.push(tSprite); return tSprite; }这个根本是新建一个GridSprite,而不是返回现有的吧,这...

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

1606. 粒子图片错误 [ 79%]

粒子图片错误 Laya.loader.load("res/yan.part", Laya.Handler.create(this, this.onAssetsLoaded), null, Laya.Loader.JSON); var yan = new Laya.Particle2D(settings); yan.emitter.start(); yan.play(); this.particlesPos.addChild(yan);   编辑器里面设置是对的 但是在网页上运行,图片...

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

1607. laya的prefab都没有明确生成使用资料 [ 79%]

...一句: let box: Laya.Sprite = Laya.Pool.getItemByCreateFun("dropBox", this.dropBox.create, this.dropBox);天啊,this.dropBox都没有初始化,怎么知道是dropbox那个呢??? 2019-09-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

1608. 我给加载进来的UI界面中一个图片,添加点击更换图片的事件,需要点击两次才能更换图片 [ 79%]

...样的。你这样调整下就行了: function showui() { showui.super(this); var arr2 = new Array(); arr2.push(this.dimg); this.dimg.on(Laya.Event.CLICK, this,apeclick2, arr2); } function apeclick2(that) { console.log("apeclick sucess"); that.skin = "../img/5.jpg"; console.log(that); that.zOrder ...

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

1609. panel.mouseThrough = true [ 79%]

...元件(iamge)可以单击,但是mouseThrough  为 true 就不行, this._imgHome.mouseThrough = true; this._sprHome.mouseThrough = true; this.panel.mouseThrough = true; 附件 : --> T29_cityTest2048_-_副本.zip 2018-05-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

1610. js预加载声音报错 [ 79%]

...报错 Laya.loader.load(slot_sound_res, Laya.Loader.SOUND, Handler.create(this, onSoundProgress, null, false)); //游戏资源加载进度函数 function onSoundProgress(pro) { console.log("sound" + pro); } 这样写哪里错了? 2016-12-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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