-1

i am creating a VR app with gui buttons. i want to trigger the button if user keeps the button for active for a specified time. Like the one explained in Google design patterns.

Here is a youtube link on how to animate fuse buttons in Mobile VR apps

Rao
  • 2,902
  • 14
  • 52
  • 70
  • 1
    You really should show some effort put into solving the problem before posting a question. Please refer to the sites FAQ – K.L. Jun 10 '15 at 08:19

1 Answers1

1

First, you have to place a UI element in world space. Add a collider to it. Then, use the Gaze provided by the Cardboard SDK to check for a collision. If your UI element detects a gaze, it starts off a timer and animates a fuse. If the gaze leaves the UI element before the timer reaches 0, you do noting. Otherwise, activate the fuse button.

K.L.
  • 2,419
  • 1
  • 21
  • 26
  • can you provide a sample for me. I Placed UI button, checked GazeInput, added a eventTrigger (Point Enter) for the button. But could not able to understand how to animate fuse. – Rao Jun 23 '15 at 15:06
  • I have updated my question with youtube help link also – Rao Aug 29 '16 at 05:26