- Home /
 
 
               Question by 
               KTS95SL · Sep 09, 2020 at 09:27 AM · 
                unity 5vroculusrift  
              
 
              How to convert Input.mousePosition for grip select input in Oculus Rift S?
This code has written for mouse click, but I want to change it to oculus rift s touch controller grip select input. How can I do it using oculus integration and XR interaction toolkit in unity or in an another way?
     if (!Input.GetMouseButtonDown(0))
     {
         return;
     }
     if (!Physics.Raycast(_cam.ScreenPointToRay(Input.mousePosition), out RaycastHit hit))
     {
         Debug.Log(hit);
         return;
     }
 
              
               Comment
              
 
               
              I have exactly the same question, did you get any answer for this from somewhere else?
Your answer