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

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

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

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

122. laya.ui.Button [ 48%]

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

123. laya.ui.Button [ 47%]

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

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

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

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

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

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

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

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

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

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

128. 【简单跑酷--JS版】---Lv.6 终篇 [ 42%]

...Event.MOUSE_DOWN, this, this.onMouseDown); Laya.stage.on(laya.events.Event.MOUSE_UP, this, this.onMouseUp); //创建一个帧循环处理函数 Laya.timer.frameLoop(1, this, this.onLoop); } _proto.onLoop = function(){ // 检测人物是否踩在地板上面了 for(var i = this.mapFloor.numChildren -...

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

129. laya.ui.CheckBox [ 40%]

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

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

130. 用LayaAir引擎解析Tiled Map地图(ActionScript-2D进阶篇(AS3)-扩展模块) [ 40%]

...Laya.stage.on(Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Event.MOUSE_UP, this, this.mouseUp); resize(); } /** * 移动地图视口 */ private function mouseMove():void { var moveX:Number = MapX - (Laya.stage.mouseX - mLastMouseX); var moveY:Number = MapY - (Laya.stage.mouseY - mLastMouse...

来源: Laya2.0_文档 发布时间: 20210714