大约有 63 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0040 秒)
...nction checkHit() { //从屏幕空间生成射线 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); } (...
来源: Laya_示例 发布时间: 20241125
.../Company/Emerson-AirWar/EmersonGame/bin/libs/laya.core.js:3499:10) at MouseManager.__proto.onMouseUp (file:///Users/moos/Company/Emerson-AirWar/EmersonGame/bin/libs/laya.core.js:3043:18) at MouseManager.__proto.check (file:///Users/moos/Company/Emerson-AirWar/EmersonGame/bin/libs/laya.core...
来源: Laya_社区 发布时间: 20180709
如何代码触发layaCanvas的mouseDown事件 在laya.events.MouseManager中layaCanvas有mouseDown事件的监听,现在我在使用fairyUI中使用list.displayObject.event(Event.MOUSE_DOWN),在MouseManager的监听里收不到。想知道怎么用代码达到鼠标点击的效果 2020-04-13 ...
来源: Laya_社区 发布时间: 20200413
.../Company/Emerson-AirWar/EmersonGame/bin/libs/laya.core.js:3499:10) at MouseManager.__proto.onMouseUp (file:///Users/moos/Company/Emerson-AirWar/EmersonGame/bin/libs/laya.core.js:3043:18) at MouseManager.__proto.check (file:///Users/moos/Company/Emerson-AirWar/EmersonGame/bin/libs/laya.core...
来源: Laya_社区 发布时间: 20180709
... 个回复 158*****364 赞同来自: this.mousePos = new Laya.Vector2(Laya.MouseManager.instance.mouseX, Laya.MouseManager.instance.mouseY); //鼠标点击屏幕产生射线 this.camera.viewportPointToRay(this.mousePos, this.ray); var phy:Laya.PhysicsSimulation =new Laya.Phy...
来源: Laya_社区 发布时间: 20190505
...tion = _quaternion; //从屏幕空间生成射线 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); } (...
来源: Laya_示例 发布时间: 20241125
... return; } this.lab.pos(Laya.MouseManager.instance.mouseX,Laya.MouseManager.instance.mouseY); } } onStart不是在onUpdate之前执行吗?怎么就会输出一次空呢,搞不懂了.... 2020-06-02 添加评论 免费帖 --> 分享 微博...
来源: Laya_社区 发布时间: 20200602
...件 onMouseDown() { //记录点击到舞台上的点 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.out...
来源: Laya2.0_文档 发布时间: 20210715
...件 onMouseDown() { //记录点击到舞台上的点 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.out...
来源: Laya2.0_文档 发布时间: 20210715
...e function onMouseDown():void { //记录点击到舞台上的点 point.x = MouseManager.instance.mouseX; point.y = MouseManager.instance.mouseY; //产生射线 _camera.viewportPointToRay(point,_ray); //拿到射线碰撞的物体 _scene.physicsSimulation.rayCast(_ray,_outHitResult); //如果碰撞...
来源: Laya2.0_文档 发布时间: 20210715