Join Jesse Freeman for an in-depth discussion in this video Resizing textures to fill the screen, part of Unity 5 2D Essential Training (2015).
- So now let's take a look at how we can get this texture…to fill up the screen and repeat.…We'll change the Quad's name to background,…and now let's take a look at its transform.…Our scale is set to 32 by 32, if we were to make this…10 times larger by multiplying it by 10,…we would have 320 by 320.…Now we'll zoom out a little bit, and what you'll see…is that instead of this repeating,…it actually just grew larger.…In order for this to actually work,…we need to got the material itself…and change the tiling value,…here, we need to set this to 10 by 10,…now you'll see our texture's repeating.…
But of course we can't do this all the time…for every single screen resolution,…we're gonna need to create a script…that takes the resolution into account,…and then automatically sizes up our Quad…and changes the tiling value on the material.…So let's reset this all back,…we'll make sure that the tiling is one…and back in our game we'll reset the background to 32 by 32.…Let's go into our scripts folder and create a script…called tiled background,…
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.