O'Reilly logo

Unity 5.x Game Development Blueprints by John P. Doran

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding the background

To get started, the first thing we'll need to do is add in our backgrounds:

  1. From the Art Assets folder in the example code folder for this chapter, bring the background sprite into the Project tab under the Assets/Sprites folder by dragging and dropping it there.

    Note

    These assets are also created by Kenney and the art provided in addition to additional plane colors and assets can be found at http://kenney.nl/assets/tappy-plane.

  2. If you select the background sprite from the Project tab, you'll notice that the Inspector tab should have Texture Type set to Sprite (2D and UI). If not, change it and then press the Apply button.

    At this point, I want to point out the Pixels Per Unit property as it is important for our logic in the code ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required