Join Jesse Freeman for an in-depth discussion in this video Laying out text, part of Unity 5 2D Essential Training (2015).
- So 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 gonna 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 art work.…We can actually fix that by going into the canvas…and changing the order and 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 wanna 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 gonna wanna do is…now center it within this space.…So let's go to…the paragraph alignment button and hit center.…Now, our position is set to zero, zero,…which will roughly center this inside of our canvas.…You'll see that the pivot position…of this object is in the middle.…
Super Zombie Runner riffs off the popular endless runner genre: a one-button casual game that's not only fun to play but exciting to build. The focus of the work is a reusable code base that you can extend and make your own, while learning the basics of object pooling, supporting multiple screen resolutions, tracking scoring, and multi-platform publishing. Along the way, Jesse covers key Unity features, such as working with sprites, creating animations, and leveraging the UI components.
- Working with sprites and animation
- Creating the player
- Spawning GameObjects
- Adding obstacles and collisions
- Building the game objects and logic
- Managing game state
- Creating pixel-perfect cameras
- Designing for multiple screen resolutions
- Adding scores
- Optimizing performance
- Publishing to desktop, web, and mobile platforms
Skill Level Intermediate
1. Working with Sprites
2. Creating Repeating Textures
3. Creating Obstacles
4. Object Pooling
5. Creating the Player
6. Setting Up the Game
7. Adding UI
8. Creating More Obstacles
- 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.