大约有 298 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0041 秒)
Laya_社区(77) Laya3.0_api(62) Laya2.0_api(58) laya_api(54) Laya2.0_文档(19) Laya2.0_示例(11) Laya_示例(11) Laya3.0_文档(6)
...24 10:07 问题解决了, this.point.elements[0] = MouseManager.instance.mouseX;//用Laya.stage.mouseX有问题,在SCALE_SHOWALL下 this.point.elements[1] = MouseManager.instance.mouseY; cuixueying • 2017-04-24 10:21 厉害!
来源: Laya_社区 发布时间: 20170421
...tartScrollText); } function startScrollText(){ this.prevX = this.txt.mouseX; this.prevY = this.txt.mouseY; Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.scrollText); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.finishScroll); } function finishScroll(){ Laya.stage.off...
来源: Laya_社区 发布时间: 20170810
....RenderState):void{ // console.log(mX + "移动"); // console.log(this.lastMouseX + "按下"); let mX:number = Laya.stage.mouseX; let mY:number = Laya.stage.mouseY; let vec:Laya.Vector3 ; if(this.isDown){ if(this.lastMouseX - mX > 0) { vec = new Laya.Vector3(0,-1,0); } else { vec = new Laya.Vecto...
来源: Laya_社区 发布时间: 20180113
...ext); } /* 开始滚动文本 */ function startScrollText(e) { prevX = txt.mouseX; prevY = txt.mouseY; Laya.stage.on(Event.MOUSE_MOVE, this, scrollText); Laya.stage.on(Event.MOUSE_UP, this, finishScrollText); } /* 停止滚动文本 */ function finishScrollText(e) { Laya.stage.off(Event.MOUSE_MOVE, ...
来源: Laya2.0_文档 发布时间: 20210714
...t);}/*开始滚动文本*/function startScrollText(){this.prevX = this.txt.mouseX;this.prevY = this.txt.mouseY;Laya.stage.on(Laya.Event.MOUSE_MOVE,this,scrollText);Laya.stage.on(Laya.Event.MOUSE_UP,this,finishScrollText);}/* 停止滚动文本 */function finishScrollText(){Laya.stage.off(Laya.Event....
来源: Laya_社区 发布时间: 20180125
...文本 */ private startScrollText(e: Event): void { this.prevX = this.txt.mouseX; this.prevY = this.txt.mouseY; Laya.stage.on(Event.MOUSE_MOVE, this, this.scrollText); Laya.stage.on(Event.MOUSE_UP, this, this.finishScrollText); } /* 停止滚动文本 */ private finishScrollText(e: Event): void { La...
来源: Laya2.0_文档 发布时间: 20210715
...rotation, false); } mouseDown(){ this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouseY; //产生射线 this.camera.viewportPointToRay(this.point, this.ray); var out = new Laya.CannonHitResult(); this.scene.cannonPhysicsSimulation.rayCast(this.ray,out); if...
来源: Laya_社区 发布时间: 20200903
...ya.Vector2(); screenPoint.x = Laya.MouseManager.instance.mouseX; screenPoint.y = Laya.MouseManager.instance.mouseY; // console.log(screenPoint); let touchRay:Laya.Ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector...
来源: Laya_社区 发布时间: 20220117
...从屏幕空间生成射线 point.elements[0] = Laya.MouseManager.instance.mouseX; point.elements[1] = Laya.MouseManager.instance.mouseY; camera.viewportPointToRay(point, ray); //射线检测获取所有检测碰撞到的物体 Laya.Physics.rayCast(ray, _outHitInfo, 30, 0); } (function loadUI() { va...
来源: Laya_示例 发布时间: 20241119
...动文本 */ private function startScrollText(e:Event):void { prevX = txt.mouseX; prevY = txt.mouseY; Laya.stage.on(Event.MOUSE_MOVE, this, scrollText); Laya.stage.on(Event.MOUSE_UP, this, finishScrollText); } /* 停止滚动文本 */ private function finishScrollText(e:Event):void { Laya.stage.off(...
来源: Laya2.0_文档 发布时间: 20210715