cancel
Showing results for 
Search instead for 
Did you mean: 

UI ray interactor has no pointer

avivXR
Explorer

I trying to work with the OVR Interaction Comprehensive. I only need a ray interactor to interact with my UI (maybe also Poke). 

I disabled most of the interactions (grab, locomotion, etc)  and the UI works (sort of). 

The app is not showing the "laser pointer" round marker so it is hard to detect where I am pointing in the UI.

What am I missing?

 

Thanks

Aviv

1 REPLY 1

abdulist
Explorer

i usually use OVRCameraRigInteraction prefabs from package as a Player.
to setup a UI interaction I add Pointable Canvas Module component on EventSystem Game object:

abdulist_0-1739903343291.png

on Canvas, I add Pointable Canvas component and Ray Interactable:

abdulist_1-1739903592573.png

and this is how I make a UI Collider Surface (green outline):

abdulist_2-1739903659517.png

adjust your collider as big as your UI, and it have to be thin (I usually put 0.1 to 0.2 Z size/scale), and then drag and drop the collider surface game object to Surface column (the green outlined).

for the Select Surface column, I use a Plane Surface component:

abdulist_3-1739903926484.png

this setup works fine on me. hope my setup help (sorry for bad English)