Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Denny88's avatar
Denny88
Honored Guest
10 years ago

Raycast doesn't work

Hey,

I have some trouble with my program. I use a Raycast in a Playmaker Script from Unity. Everything is fine in Unity on the PC, but it doesn't work with the Gear VR and I don't know why :( Is that a well known issue? All other scripts are running at the Gear VR too.

best regards
Denny

4 Replies

Replies have been turned off for this discussion
  • Can you give me some more detail? Maybe the line of code that's not working. Do you receive any errors?
  • MrgdsVR's avatar
    MrgdsVR
    Honored Guest
    Same problem...Everything is works (raycast wise )in Unity on the PC, but it doesn't work with the Gear VR(OVR) and I don't know why 
  • Did you add  the OVRTouchpad.TouchHandler += HandleTouchHandler? Could it possibly your raycas wasn't attached to centerCamera?