cancel
Showing results for 
Search instead for 
Did you mean: 

Not getting OnPointerEnter event on Button using OVR Raycaster with Laser pointer

chris.fonggg
Honored Guest

Stack:

  • Oculus Quest
  • Unity 2020.3
  • Oculus VR Integration
  • i5 8th gen

 

I have a Unity scene with a VR interface composed by a Canvas (World Space coordinates) and two buttons. The canvas has attached an OVR Raycaster objects which uses a laser pointer. 

 

The strange thing is that both OnPointerEnter and OnPointerClick get called when I point the button with the laser and click. Just hovering the doesn't trigger any event (nor OnPointerExit or OnPointerEnter).

 

anyone got the same problem?

 

1 REPLY 1

jvanderhyde
Honored Guest

Is is the same problem as this one?

https://forums.oculusvr.com/t5/Unity-VR-Development/Detecting-laser-pointer-hovering-on-button-Oculu...

 

I followed the directions posted there, and it starts to solve the problem.

You have to add this code inside the OVRInputModule class, in OVRInputModule.cs:

        protected override void ProcessMove(PointerEventData pointerEvent)
        {
            var targetGO = pointerEvent.pointerCurrentRaycast.gameObject;
            HandlePointerExitAndEnter(pointerEvent, targetGO);
        }

It does not completely solve my problems with the pointer running on Oculus Quest, but it is a step in the right direction.

Get Help
Did this answer your question? If it didn’t, use our search to find other topics or create your own and other members of the community will help out.

Check out some popular posts here:
Getting Help from the Meta Quest Community
Tips and Tricks: Charging your Meta Quest Headset
Tips and Tricks: Help with Pairing your Meta Quest
Trouble With Facebook/Instagram Accounts?