#Hololens – Using voice commands to display a menu with #HoloToolkit

Hello!

In yesterday’s post, I wrote on how to interact with a menu with Hololens, Unity3D and HoloToolkit. Today I will wrote on how to show the menu in a specific location using a voice command.

Ideally, the menu is displayed in the direction in which we are looking with the Hololens.

 

Holo view Hide Menu 03.gif

It’s very easy, in the Managers collection, we will add a new Script with the following code.

Clipboard02.png

The code is very simple, although a couple of commenrs will help

  • The voice command to show / hide the menu is “Menu”
  • Lines 26 to 28 is where the show or hidden the Group Menu action is placed
  • Lines 30 to 32 is where the menu at 30% is displayed of normal size and position it in front of the view of the camera of the Hololens

As someone has asked me, I leave the full example on GitHub to download here (link)

Greetings @ Toronto

El Bruno

References

Advertisements

21 thoughts on “#Hololens – Using voice commands to display a menu with #HoloToolkit

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s