Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Jepplen's avatar
Jepplen
Expert Protege
5 years ago

How to use Texture Coords to Raycast on UI?

Is it possible to use Texture Coords to cast a ray on a canvas UI?

I'm extracting the texture coords from a rendertexture and now I want to cast these coords onto a canvas UI.
I've been looking through the OVRRaycaster script, but I can't make heads or tails on what kind of parameters it needs to cast a graphic raycast.

Any help would be greatly appreciated.
Jesper

1 Reply

Replies have been turned off for this discussion
  • Jepplen's avatar
    Jepplen
    Expert Protege
    Maybe it's possible to feed the texturecoords into the OVRInputModule to fake the input?
    But where?
    I can't seem to find the right spot.