Until now, we have only created menus. In this chapter, we'll focus on in-game user interface elements in both 2D and 3D spaces. We'll see how to display the UI elements in the following ways:
Player name on top of the main character, which follows his movement
2D progress bar above interactive 3D objects
Drag-and-drop 3D objects in the world
Move a player by clicking on the ground
2D buttons over 3D space objects
Set 2D buttons as available/unavailable
We'll illustrate this with a simple game package that you can download and import in your project. Let's start by explaining the game.