Efficient Level Design

Now that we have the initial ground for our first screen, we will want to duplicate it for the next screen. While it did not take a lot of time to create the first ten, having a quicker solution would make things easier on our level designer! We could simply select all 20 grassMid and grassCenter GameObjects, duplicate them, and position them; let’s see if we can find a more efficient way:

1. Create an empty GameObject by going to GameObject > Create Empty.

2. Double-click on the name or right-click and select Rename. Let’s rename our GameObject “Screen1.”

3. Reset the Screen1 GameObject by resetting its Transform values. Remember the gear icon to the right of the Transform text? Click the drop-down and select Reset.

Get Learning 2D Game Development with Unity®: A Hands-On Guide to Game Creation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.