I am using the google VR SDK (for cardboard) in unity3d but the cardboard i have does not have buttons. Is there a way to enable gaze only mode that treats extended gaze (a few seconds) as a button click? ( i guy in a tutorial video said "you can enable gaze only mode" but did not explain anything afterwards) is this a feature built in or do i have to code the gaze interaction from scratch to accomplish this?
I have searched everywhere for the code to enable this not only the public props that appear on the editor on the different prefabs available from the demo scenes.
I don't know how or if there is a built-in method for this. But you can easily build extending the button:
Replace a normal Unity Button with this component and set the desired dwellTime. It will then automatically invoke the onClick event after staying focused for the dwellTime.
As alternative without having to replace the Button everywhere you can simply attach this component additionally on every button:
This does basically the same but invokes the
onClickand other events of theButtoncomponent instead.note: typed on smartphone but I hope the idea gets clear