大约有 1,210 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0055 秒)
Laya_社区(903) Laya3.0_api(80) Laya2.0_文档(78) Laya_示例(64) Laya2.0_示例(51) Laya3.0_文档(30) laya_api(2) Laya2.0_api(2)
Laya在OPEN事件触发连接成功后无法抛出event事件 public static const CONNECT:String = "connect"; 这是我一个自定义的CONNECT事件,我在连接成功后,在一个EventDispatcher类这样抛出:this.event(CONNECT); 然后报错说this._$1_event不是一个方法 这是什...
来源: Laya_社区 发布时间: 20170818
...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
...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
事件函数作用域问题 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
... } 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
...(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
Laya.Event.RESIZE,舞台宽度未发送改变,还是一直重复执行 监听舞台的变化,Laya.stage.on(Laya.Event.RESIZE,this,this.autoScreen); 打开页面什么都不做,autoScreen函数不停的循环执行。。。 2017-11-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20171112
...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
..., "$bar.png"); this.callLater(this.changeValue); this._sizeChanged(); this.event(Event.LOADED); }加载过程中, 组件执行了destroy()方法后, this._bg.skin = this._skin;// 这行会报错 2020-01-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...
来源: Laya_社区 发布时间: 20200108
...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