O'Reilly logo

Learning Unity 2D Game Development by Example by Venita Pereira

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

Two methods to set a background

We will learn how to set up our scene with a static background using two methods:

  • Using a static image
  • Using a tileset

Setting a background using a static image

When we want only a few images of different sizes to make up our background, we use static images.

Importing our asset

First, we will need to either create an image or select a pre existing image that we will be using as our background by finding its location on our PC, as shown in the following screenshot:

Importing our asset

For clarity and organizational purposes, it is best to create a Sprites Folder within the Project Browser with a subfolder called Environment to store all the ...

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