Building a Memory Game using Unity’s 2D Functionality

From Unity in Action, Third Edition by Joe Hocking

Setting everything up for 2D graphics

Figure 1 Mock-up of what the Memory game looks like

Preparing the project

Figure 2 Art assets required for the Memory game
Figure 3 Create new projects in either 2D or 3D mode with these buttons.

2D Editor mode and 2D Scene view

2D Scene view toggle
Default Behavior Mode setting within Edit > Project Settings > Editor

Displaying 2D images (aka sprites)

Creating packed sprite atlases

Figure 4 How sprites stack along the Z-axis

Switching the camera to 2D mode

Figure 5 Camera settings to adjust for 2D graphics



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Manning Publications

Follow Manning Publications on Medium for free content and exclusive discounts.