In this video, Jesse Freeman teaches you how to control Unity 5’s new text component via C#. This will allow you to dynamically change the value of the text component at runtime directly from code. Once connected, you can change the value at any time. Learning how to polish a Unity 5 game is an import skills for building a 2D game.
- [Voiceover] Now that we've cleaned up…the way that fonts render in our game,…now let's go through and clean up…what the text is going to say…and how it lays out on the screen.…Let's open the Canvas and select the Text element.…One thing you'll notice, though,…is that the text is rendering behind our artwork.…We can actually fix that by going into the Canvas…and changing the order in layer.…Let's give this a high value, like 100,…and now the text will appear…above the other artwork in our game.…Going back into the text instance,…let's change the font size to eight.…
We'll want to change the value of the text…to say, "Press any button to start."…Now, if we zoom out, you'll now see…that the text sits inside of the size…of the text area we originally created.…What we're going to want to do is now center it…within this space.…Let's go to the Paragraph Alignment button, and hit Center.…Now, our position is set to 00,…which will roughly center this inside of our canvas.…You'll see that the pivot position of this object…
Start watching to learn how to convert artwork into sprites, create repeating background textures with Unity's TexturePacker, and build reusable game objects such as players, obstacles, and enemies. Jesse also covers the basics of object pooling, working with custom UI components, and multiplatform publishing.
- Importing artwork
- Editing sprites
- Creating repeating background textures
- Building reusable obstacles
- Recycling game objects
- Building an object pool
- Creating the player
- Starting and ending the game
- Displaying and saving the score
- Adding menus and text
- Publishing a Unity game in different formats
Skill Level Beginner
1. Working with Sprites
2. Creating Repeating Textures
3. Creating Obstacles
4. Object Pooling
5. Creating the Player
6. Setting Up the Game
7. Polishing the Game
8. Creating More Obstacles
Publish to different formats5m 42s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.