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

大约有 1,210 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0055 秒)

251. Laya在OPEN事件触发连接成功后无法抛出event事件 [ 83%]

Laya在OPEN事件触发连接成功后无法抛出event事件 public static const CONNECT:String = "connect"; 这是我一个自定义的CONNECT事件,我在连接成功后,在一个EventDispatcher类这样抛出:this.event(CONNECT);  然后报错说this._$1_event不是一个方法 这是什...

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

252. 使用3D精灵 · LayaAir3.0文档 · LAYABOX [ 83%]

...tion; } } /** * 监听鼠标事件 */ onAwake(): void { Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); this.camera = (<Laya.Camera>this.owner); } /** * 监听键盘事件 */ onUpdate(): void { var elapsedTime: number = Laya.t...

来源: Laya3.0_文档 发布时间: 20240624

253. 灯光-方向光 [ 83%]

...res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, function () { var aniSprite3d = layaMonkey.getChildAt(0); var animator = aniSprite3d.getComponentByType(Laya.Animator); animator.play(null, 1.0, 40, 70); }); var _quaternion = new Laya.Quaternion...

来源: Laya_示例 发布时间: 20241002

254. 事件函数作用域问题 [ 83%]

事件函数作用域问题 1. this.btn_Login.on(Laya.Event.CLICK, null, ()=>{ if (this.loginDig) { this.loginDig.removeSelf(); this.loginDig.destroy(); } 2.this.btn_ok.on(Laya.Event.RIGHT_CLICK, this, this.OnBut_Open); OnBut_Open() : void { this.removeSelf(); this.destroy(); } 就是这两个...

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

255. 3D模型旋转问题,鼠标移动之后,根据按下移动的X坐标差值判断左右旋转,但是会越转越快,请问是什么问题? [ 83%]

... } this.rotate(vec); } }   监听的鼠标移动事件 Laya.stage.on(Laya.Event.MOUSE_UP,this,this.mouseUp); Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_MOVE,this,this.mouseMove);   private mouseDown():void{ let mX:number = Laya.stage.mouseX; this.lastM...

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

256. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 83%]

...(this.x + this.width) < this.maxRight){ this.isOutComplete = true; this.event(Floor.OUT_COMPLETE, this); }else if((this.x + this.width) < 0){ //判断整个floor是否不在屏幕里面了 如果不在了 移除当前floor Laya.timer.clear(this, this.onLoop); this.visible = false; this.event(F...

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

257. Laya.Event.RESIZE,舞台宽度未发送改变,还是一直重复执行 [ 83%]

Laya.Event.RESIZE,舞台宽度未发送改变,还是一直重复执行 监听舞台的变化,Laya.stage.on(Laya.Event.RESIZE,this,this.autoScreen); 打开页面什么都不做,autoScreen函数不停的循环执行。。。 2017-11-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

258. 灯光-点光 [ 83%]

...res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, function () { var aniSprite3d = layaMonkey.getChildAt(0); var animator = aniSprite3d.getComponentByType(Laya.Animator); animator.play(null, 1.0, 75, 110); }); var _position = new Laya.Vector3(); ...

来源: Laya_示例 发布时间: 20241002

259. progressbar设置皮肤后, 马上destroy会报bug [ 83%]

..., "$bar.png"); this.callLater(this.changeValue); this._sizeChanged(); this.event(Event.LOADED); }加载过程中, 组件执行了destroy()方法后,  this._bg.skin = this._skin;// 这行会报错 2020-01-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

260. 播放骨骼动画 [ 83%]

...tar:Laya.Skeleton; this.factory = new Laya.Templet(); this.factory.on(Laya.Event.COMPLETE, this, this.parseComplete); this.factory.on(Laya.Event.ERROR, this, this.onError); this.factory.loadAni("sp/aa.sk"); this.avatar = this.factory.buildArmature(0); this.avatar.play(0,true); 2017-07-18 添加评...

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