How does "clicking" by gazing at an object work? Question from a first time developer


Hi Aryzon!

It might be a very easy question, but as the topic says, I am new to AR and Unity and have just little experience in programming. So I ask anyway and hope that’s okay. :slight_smile:
In the Aryzon app example projects you click on an object by gazing at it. How does that work? I’m trying to make a game in Unity for Android in which you grab a falling object by gazing at it (and thus clicking on it).

Thanks in advance!


You will need a collider on the object, a VRInteractiveItem and a script to listen to the OnClick etc actions of the VRInteractiveItem and perform your required functionality. In the sample project there is a simple example of a cube changing color.


Thank you for your reaction.