Game Development Reference
In-Depth Information
This will bring up the pop-up window, as shown in the following screenshot. Click on
the
Continue
buton to break the prefab:
5. Now, to create the background material, go to
Assets
|
Create
|
Material
, and
name it whatever you want; here we will call it
M_Background
. Then, we assign our
background texture to this material, in the project window click on
M_Background
.
We will see the
Inspector
view of the background material, as shown in the
following screenshot:
If you don't see the detail as seen in the preceding screenshot,
you can click anywhere that isn't a buton on the banner (the
lighter gray area that says
M_Background
) to show the details.
6. Next, drag the
background.png
file from the
Chapter1/Level
folder in the
Project
view and drop it in the texture thumbnail, and then set the following:
Shader
:
Diffuse
Main Color
:
R:164
,
G:219
,
B:225
,
A: 255
Base (RGB)
:
x
-
Tiling
:
2
,
Offset
:
0
;
y
-
Tiling
:
2
,
Offset
:
0