SET UP BACKGROUND

In the process of a game development, setting up a background is a crucial first step. It is a very easy process but setting up a layout and importing textures can sometimes be confusing. In this game, I have used 3D Objects to be my GameObjects. So I started off my new project to be a 3D. Later, I will configure the camera to make the players view the game as a 2D game. 

I always set up my layout as shown below in Figure 1. This layout allows me to see Assets, grab objects into Scene, tweak properties of Components in Inspector window and also view Console messages conveniently. 

Figure 1. Favorite Layout

A plane is a large surface in a UNITY 3D space. Usually, floors or any other flat surfaces are common as plane in games. Here, in this project I used plane to set up my background texture.

To create a plane, simply go to GameObject --> 3D Object --> Plane (Figure 2.)

OR, Right-Click on Hierarchy --> 3D Object --> Plane (Figure 3)

Figure 2. Creating Plane

Figure 3. Creating Plane

I found a great texture for the Space in https://pixabay.com/photos/universe-star-space-texture-2947500/?download, thanks to the author. There are two ways to import texture into Unity:

Once the texture is imported, I converted the image texture type to "Sprite". This allows me to drag and drop the texture into the plane.