大约有 143 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0048 秒)
Laya_社区(89) Laya_示例(13) Laya2.0_文档(12) Laya2.0_示例(10) Laya2.0_api(6) laya_api(6) Laya3.0_文档(6) Laya3.0_api(1)
...路径数据 ```typescript //监听鼠标抬起 Laya.stage.on(Laya.Event.MOUSE_UP, this, function() { this.index = 0; //获取每次生成路径 this.getGridIndex(this.path[this.curPathIndex % this.pointCount].x, this.path[this.curPathIndex++ % this.pointCount].z, this.startPoint); this.getGridIndex...
来源: Laya2.0_文档 发布时间: 20210714
...路径数据 ```typescript //监听鼠标抬起 Laya.stage.on(Laya.Event.MOUSE_UP, this, function() { this.index = 0; //获取每次生成路径 this.getGridIndex(this.path[this.curPathIndex % this.pointCount].x, this.path[this.curPathIndex++ % this.pointCount].z, this.startPoint); this.getGridIndex...
来源: Laya2.0_文档 发布时间: 20210715
...界的路径数据 ```typescript //监听鼠标抬起 Laya.stage.on(Event.MOUSE_UP, this, function():void { index = 0; //获取每次生成路径 getGridIndex(path[curPathIndex % pointCount].x, path[curPathIndex++ % pointCount].z, startPoint); getGridIndex(path[nextPathIndex % pointCount].x,path[nex...
来源: Laya2.0_文档 发布时间: 20210714
...加鼠标抬起事件侦听。抬起时还原按钮。 this.on(Laya.Event.MOUSE_UP,this, this.scaleBig); //添加鼠标离开事件侦听。离开时还原按钮。 this.on(Laya.Event.MOUSE_OUT,this, this.scaleBig); } private scaleBig():void { //变大还原的缓动效果 Laya.Tween.to(this, {scale...
来源: Laya2.0_文档 发布时间: 20210715
...id 对象的 Event.MOUSE_OVER、Event.MOUSE_OUT、Event.MOUSE_DOWN、Event.MOUSE_UP、Event.CLICK 事件侦听处理函数。 Button preinitialize():void 预初始化。 Component resetLayoutX():void 重置对象的 X 轴(水平方向)布局。 Component resetLayoutY():void 重置对象的 Y ...
来源: laya_api 发布时间: 20170929
...id 对象的 Event.MOUSE_OVER、Event.MOUSE_OUT、Event.MOUSE_DOWN、Event.MOUSE_UP、Event.CLICK 事件侦听处理函数。 Button preinitialize():void 预初始化。 UIComponentEvents Hide Inherited Events Show Inherited Events Event Summary Defined By added添加到父对象后调度。Node...
来源: Laya2.0_api 发布时间: 20190513
....on(Laya.Event.MOUSE_MOVE, this, this.mouseMove); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, this.mouseWheel) } onUpdate(): void { if (Laya.Browser.onMobile) { this.AroundByMobileInput(); } else { this.AroundByMouseInput(); } if (!this.canRota...
来源: Laya_社区 发布时间: 20170714
....on(Laya.Event.MOUSE_MOVE, this, this.mouseMove); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, this.mouseWheel) } onUpdate(): void { if (Laya.Browser.onMobile) { this.AroundByMobileInput(); } else { this.AroundByMouseInput(); } if (!this.canRota...
来源: Laya_社区 发布时间: 20190224
...his.jumpCount = 0; this.gotoRun(); } })(); 同样的RunGame.js 需要增加MOUSE_UP事件来重置悬空 我们看到player.js里面是通过当前action来判断是否悬空的 因此重置悬空只需要重置为jump的动作即可(为什么不是run的动作) 因为悬空的时候 还是出...
来源: Laya_社区 发布时间: 20160801
...n(Laya.Event.MOUSE_DOWN, this, this._onScaleBtnDown); target.on(Laya.Event.MOUSE_UP, this, this._onScaleBtnOut); } //按钮放大 _onScaleBtnDown(e: Laya.Event) { console.log("开始缩放"); e.target.scale(1.1, 1.1); } //按钮还原 _onScaleBtnOut(e: Laya.Event) { console.log("取消缩放"); e.ta...
来源: Laya3.0_文档 发布时间: 20251010