大约有 24 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0023 秒)
...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
...动文本 */ 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
...文本 */ 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
...ector3(0, 0, 0)); //以鼠标点击的点作为原点 point.x = Laya.stage.mouseX; point.y = Laya.stage.mouseY; //计算一个从屏幕空间生成的射线 camera.viewportPointToRay(point, ray); ``` 在示例([demo地址](https://layaair.ldc.layabox.com/demo2/?language=ch&category=3d&group=Camera&n...
来源: Laya2.0_文档 发布时间: 20210715
...ector3(0, 0, 0)); //以鼠标点击的点作为原点 point.x = Laya.stage.mouseX; point.y = Laya.stage.mouseY; //计算一个从屏幕空间生成的射线 camera.viewportPointToRay(point, ray); ``` 在示例([demo地址](https://layaair.ldc.layabox.com/demo2/?language=ch&category=3d&group=Camera&n...
来源: Laya2.0_文档 发布时间: 20210714
...ector3(0, 0, 0)); //以鼠标点击的点作为原点 point.x = Laya.stage.mouseX; point.y = Laya.stage.mouseY; //计算一个从屏幕空间生成的射线 camera.viewportPointToRay(point, ray); ``` 在示例([demo地址](https://layaair.ldc.layabox.com/demo2/?language=ch&category=3d&group=Camera&n...
来源: Laya2.0_文档 发布时间: 20210714
...//记录点击到舞台上的点 this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouseY; //产生射线 this.camera.viewportPointToRay(this.point,ray); //拿到射线碰撞的物体 this.scene.physicsSimulation.rayCast(this.ray,this.outHitResult); //如果...
来源: Laya2.0_文档 发布时间: 20210715
...//记录点击到舞台上的点 this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouseY; //产生射线 this.camera.viewportPointToRay(this.point,ray); //拿到射线碰撞的物体 this.scene.physicsSimulation.rayCast(this.ray,this.outHitResult); //如果...
来源: Laya2.0_文档 发布时间: 20210715
...():void { //记录点击到舞台上的点 point.x = MouseManager.instance.mouseX; point.y = MouseManager.instance.mouseY; //产生射线 _camera.viewportPointToRay(point,_ray); //拿到射线碰撞的物体 _scene.physicsSimulation.rayCast(_ray,_outHitResult); //如果碰撞到物体 if (_outHitRes...
来源: Laya2.0_文档 发布时间: 20210715
...transform.localScale = tmpLocalScale; /*添加部分*/ _pos.x = Laya.stage.mouseX; _pos.y = Laya.stage.mouseY; //转换2D屏幕坐标系统到3D正交投影下的坐标系统 camera.convertScreenCoordToOrthographicCoord(this._pos, this._translate); layaMonkey.transform.position = _translate; //设...
来源: Laya2.0_文档 发布时间: 20210715