A responsive object UI with head gestures
The last UI technique that I'll discuss is where the UI elements are not necessarily visible at all times. Rather, they may be invoked in context as a part of the gameplay. I call this a responsive object UI.
For example, in conventional video games, you might have an ammunition gauge that's always visible. In VR, you can wait for the user to look down at the weapon in his hands, and then an ammo meter on the weapon lights up, showing its status.
In this example, we are going to make the dashboard that we just built appear only when we can infer that it is the user's intent to access it. The mechanism should feel quite natural—you look down towards you feet quickly and the dashboard slides out, and when ...
Get Unity Virtual Reality Projects now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.