Adding a header text object

Of course, one of the best things to begin a game with is a title screen and that title screen will need to display the game's name. Let's learn how to do that while also learning more about how Unity's UI system works:

  1. Just like we did in the previous chapter, we will first create a text object with the name of our game, so with that in mind go to GameObject | UI | Text.
    Adding a header text object

    Just like before, this will create three objects, which we'll talk about in more detail now:

    • Canvas – This is the area where all of the UI elements will reside and if you try to create a UI element without one, Unity will create one for you like it did ...

Get Unity 5: Learning C# by Developing Games now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.