Before we introduce Gaze, I want to put a text string on the
top-left corner of the screen in order to show any message, for example, when
the are looking at the cube, we want to show the user the cube's name from the
text message.
Steps:
1)
Add a text to the Hierarchy
let's talk a little bit about this Canvas, if you click Canvas and check its properties:
you can find the "Render Mode" is set to "Screen Space - Overlay" which means, the Canvas and its children(like Text) will always fit whatever the user see from screen, here it's our hololens view
The "Render Mode" could be set to other values, but we are not interested for now, if you want more detail, please check unity website
http://docs.unity3d.com/Manual/UICanvas.html
Click Text and change the properties to be like this:
change the parameters, make sure you can see the text message on the top-left corner of the screen
done, next chapter we will make a c# script to let the message show what the user is looking at
No comments:
Post a Comment