1
NGUI 3 Support / Re: Oculus Rift "Look At Button" Problem: Raycast to Button on flying Texture
« on: February 20, 2014, 07:15:05 PM »
Thanks a lot ArenMook,
with your hint to UICamera.onCustomInput I managed to do this.
It involves
Works like a charm, but it is very late and I need to go to bed. So I post my solution this weekend after cleaning up and making some further tests.
*****
with your hint to UICamera.onCustomInput I managed to do this.
It involves
- Raycasting from the right eye camera
- if hit is a plane with a gui texture get hit texture coords
- raycast into gui camera view with gui coords to camera pixel size
- send OnHover, OnClick etc. to the hit gui object
Works like a charm, but it is very late and I need to go to bed. So I post my solution this weekend after cleaning up and making some further tests.
*****

