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

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

101. 有关Laya3D碰撞检测疑问 [ 53%]

...Laya.stage.addChild(this.label);  //鼠标事件 Laya.stage.on(Laya.Event.MOUSE_UP, this, function (): void { var str: String = ""; for (var i: number = 0; i < this._outHitAllInfo.length; i++) { str += this._outHitAllInfo.sprite3D.name + " "; } if (this._outHitAllInfo.length == 0) { str = "点...

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

102. Laya.stage.on的Mouse事件,正常情况下没问题,但是Laya.stage.pos移动后就失灵了,请问如何解决? [ 52%]

...请问如何解决? 我这样设置的代码: Laya.stage.on(Laya.Event.MOUSE_UP, this, this.onMouse); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouse); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.onMouse); 在frameLoop中,我让Laya.stage.pos(movex,movey)后,就再不会调用thi...

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

103. 高级应用-寻路导航 [ 52%]

...tate(new Laya.Vector3(-45, 180, 0), true, false); Laya.stage.on(Laya.Event.MOUSE_UP, this, function () { this.index = 0; //获取每次生成路径 this._everyPath = pathFingding.findPath(this.path[this.curPathIndex % this.pointCount].x, this.path[this.curPathIndex++ % this.pointCount].z, this.path[...

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

104. 感觉实例之间是关联的,求指教。(已解决) [ 52%]

...e) { this.imag= img; this.imageName=tempImageName; this.imag.on(Laya.Event.MOUSE_UP, this, this.hit); //this.img.on(Laya.Event.) } var _proto = Poker.prototype; _proto.show = function () { this.imag.y = 50; } _proto.hit = function () { if ( this.imag.y == 50) { this.imag.y = 150; } else if(this.imag...

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

105. [0]Event.Mouse_Drag和Event.Mouse_Drag_End在不注册鼠标事件的情况下无法 [ 52%]

...无法 const MOUSE_EVENTS = new Set([         Event.MOUSE_DOWN, Event.MOUSE_UP, Event.MOUSE_MOVE, Event.CLICK, Event.DOUBLE_CLICK,         Event.RIGHT_CLICK, Event.RIGHT_MOUSE_DOWN, Event.RIGHT_MOUSE_UP,         Event.MOUSE_OVER, Event.MOUSE_OUT, Event.MOUSE_WHEEL     ]);         s...

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

106. 关于新手引导 [ 52%]

...eContainer.on(Event.MOUSE_DOWN, this, downHandler); gameContainer.on(Event.MOUSE_UP, this, upHandler); } private function moveHandler():void { interactionArea.graphics.drawCircle(Laya.stage.mouseX, Laya.stage.mouseY, 30, "#ff0000"); } private function upHandler():void { trace("KouTu.upHandler()"); /...

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

107. 请问这是原因? [ 52%]

...e2.graphics = graphics2; Laya.stage.addChild(sprite2); Laya.stage.on(Event.MOUSE_UP,this,mouseUP); } public var flagCircle:Graphics = new Graphics(); public var flag:Sprite = new Sprite(); //让直线在圆内旋转 public function mouseUP():void{ var point:Point = sprite.globalToLocal(new Point(Lay...

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

108. 射线检测-选取物体 [ 51%]

...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_示例 发布时间: 20251130

109. 打包APK运行,drag拖动出现问题;color="#0"程序直接崩溃 [ 51%]

...imag.on(Event.MOUSE_DOWN,this,onDown);             imag.on(Event.MOUSE_UP,this,onUP);         }                  private function onDown():void{             imag.startDrag();         }         private function onUP():void{             imag.sto...

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

110. UI-RefreshList [ 51%]

....refreshList.array = data; // 添加事件监听 this.refreshList.on(Event.MOUSE_UP, this, this.stageOnMouseUp); this.refreshList.on(Event.MOUSE_OUT, this, this.stageOnMouseUp); //游戏逻辑关联引擎的停止滚动接口 this.refreshList.scrollBar.stopMoveLimit = this.scrollBarIsStopBind.bind(t...

来源: Laya2.0_示例 发布时间: 20251130