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

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

121. 寻路系统(JavaScript-3D基础(JS)-LayaAir3D之高级应用) [ 48%]

...路径数据 ```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

122. 寻路系统(TypeScript-3D基础(TS)-LayaAir3D之高级应用) [ 48%]

...路径数据 ```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

123. 寻路系统(ActionScript-3D基础(AS3)-LayaAir3D之高级应用) [ 48%]

...界的路径数据 ```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

124. runTime使用(TypeScript-IDE篇(TS)-组件化开发相关) [ 48%]

...加鼠标抬起事件侦听。抬起时还原按钮。 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

125. laya.ui.Button [ 47%]

...id 对象的 Event.MOUSE_OVER、Event.MOUSE_OUT、Event.MOUSE_DOWN、Event.MOUSE_UPEvent.CLICK 事件侦听处理函数。 Button preinitialize():void 预初始化。 Component resetLayoutX():void 重置对象的 X 轴(水平方向)布局。 Component resetLayoutY():void 重置对象的 Y ...

来源: laya_api 发布时间: 20170929

126. laya.ui.Button [ 46%]

...id 对象的 Event.MOUSE_OVER、Event.MOUSE_OUT、Event.MOUSE_DOWN、Event.MOUSE_UPEvent.CLICK 事件侦听处理函数。 Button preinitialize():void 预初始化。 UIComponentEvents Hide Inherited Events Show Inherited EventEvent Summary Defined By added添加到父对象后调度。Node...

来源: Laya2.0_api 发布时间: 20190513

127. 3D中摄像机绕物体旋转该如何实现? [ 44%]

....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

128. 官方案例里摄像机绕物体旋转脚本的问题 [ 44%]

....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

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

...his.jumpCount = 0; this.gotoRun(); } })(); 同样的RunGame.js 需要增加MOUSE_UP事件来重置悬空 我们看到player.js里面是通过当前action来判断是否悬空的  因此重置悬空只需要重置为jump的动作即可(为什么不是run的动作) 因为悬空的时候 还是出...

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

130. UI运行时 · LayaAir3.3 · 引擎文档 · LAYABOX [ 41%]

...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