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
1 year ago

RayInteractor -> Data (Optional field)

Hello,
I'm working on pointer events and the RayInteractor -> Data field seems to be exactly what I need.
Reading the helper text gives me the impression that I can assign the current eventData to the RayInteractor to identify and match an event with the RayInteractor. Which is what I want.
But i'm not understanding how to utilize this Data field.
It only takes an Object, meaning it can be pretty much anything from a sprite to a gameobject and I don't see how that works.
The documentation doesn't tell me much, perhaps someone understands it better than me.
https://developer.oculus.com/reference/unity/v67/class_oculus_interaction_ray_interactor/

Does anyone have an idea?

 

Replies have been turned off for this discussion