And we're going to adjust this, we're just going to double it roughly.
Roughly double it, and go up to the height and we're going to double that.
And now that you can see in the scene that that has actually made the box of the text
bigger.
And by taking the best fit toggle box, it will actually make the text fill that box.
So that's a great way of getting text in there.
Like I said, there's a bunch of different options for making UIs.
Now, when we actually run that,
we're going to see the object is turning up in the game for you.
And I'm going to move the headset here, and
you can actually see that it's following along.
But what you're actually going to find is that in the actual headset,
this text is not actually shown.
So although we can actually see it in the game view, in the editor,
we can't see it through the VR headset.
And this has to do with the way that the VR system kind of re-renders the cameras,
it splits it into two, and it does kind of couple things under the hood.
So, we're going to want to make couple changes to make it so
that we can see in the VR setup.
So, the main element that needs to change is this over here,
the render mode, we need to change it from screen space to world space.
Meanng that the UI element is actually going to appear as an object in the world.
So if we hit play again, we look around, we can now see the text floating in
the air, because it's an object that is embedded in the world.
But if I click the camera here, we can see where the camera is pointed, and so
we could see where the text is in the world.
So I'm just going to move the camera a little bit now so
that the text appears in the middle of the screen.
I have another look at that.
That's a little bit clearer, so you can see.
And this is, a lot of the time it's going to be a good idea to kind of have
your UI element embedded in objects.
It can help with sort of making the person feel more comfortably oriented.
By having it as an object in the world rather than a static element that is just
taking up kind of a section of their view.
So what I've done here is I've actually attached the UI to the camera, and here
we can see that we do still have options for having it attached to the view.
So as we look around the UI element is actually attached, and
you can stabilize it a bit.
But just so you can see that it is possible to still do that, as well.