O'Reilly logo

Mastering Unity 2D Game Development - Second Edition by Simon Jackson, Ashley Godbold

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

Building the scene

Now that we have some assets to build with, we can start building our first town, by placing images within the scene.

Adding the town background

Returning to the scene view, you should see the following:

Adding the town background

If, however, we add our town background texture to the scene by dragging it to either the project Hierarchy or the scene view, you will end up with the following:

Adding the town background

Our player has vanished! The reason for this is simple: Unity's sprite system has an ordering system that comes in two parts.

Sprite sorting layers

Sorting Layers (Edit ...

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