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

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

91. 射线检测-选取物体 [ 54%]

...FF40"; Laya.stage.addChild(label); //鼠标事件 Laya.stage.on(Laya.Event.MOUSE_UP, this, function () { var str = ""; for (var i = 0; i ; private camera: Laya.Camera; private label: Laya.Label; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenM...

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

92. 关于UI与3D场景的问题 [ 53%]

...,TouchManager._tEleArr); this.sendEvents(arrs,isLeft ? /*laya.events.Event.MOUSE_UP*/"mouseup" :/*laya.events.Event.RIGHT_MOUSE_UP*/"rightmouseup",touchID); var preDowns; preDowns=isLeft ? this.preDowns :this.preRightDowns; preO=this.getTouchFromArr(touchID,preDowns); if (!preO){...

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

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

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

94. 微信小游戏声音,使用playsound播放音效问题 [ 53%]

...会啊!我测试了一下并没有你说的问题! this.stage.on(Event.MOUSE_UP, this, onB); private function onB():void          {             Laya.SoundManager.playSound("res/sound/onClick.wav");         } 你看看是不是你的代码逻辑有问题那? 2018-05-03 0 2...

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

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

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

96. 使用3D精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 52%]

....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.timer.delta; if (!isNaN(this.lastMouseX) && !isNaN(this.las...

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

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

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

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

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

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

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

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

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