- Mastering Unity 2D Game Development(Second Edition)
- Ashley Godbold Simon Jackson
- 293字
- 2021-07-08 11:05:18
Creating a scene
Every level or distinct area you create within Unity will be an individual scene. So, the start screen will be a scene, the town will be a scene, the map will be a scene, and so on.
We will have the following scenes in our game:
- Start Screen
- Town
- Shop
- Overworld
- Battle Scene
When you start a new project in Unity, you will be given a blank scene that contains only a camera, as shown in the Hierarchy in the following screenshot:

Tip
The Hierarchy displays a list of all the objects within a scene.
The initial scene will be unsaved, as you can see by the word Untitled in the area above the toolbar preceding the name of the project:

To save the scene, select File | Save Scene. The first location we will design will be the town, so let's save the scene as Town.unity
in the Scenes
folder we created, as shown in the following screenshot:

You should now see the scene showing up in your Assets
folder and you will see the word Untitled replaced with Town, as shown in the following screenshot:

Tip
Save your scenes regularly by using the shortcut keys Ctrl + S. You will see an asterisk in the area above the toolbar when you have made changes to your scene and have not saved, as shown in the following screenshot.

Let's go ahead and create empty scenes for the other five scenes we will have in our game. Select File | Save Scene as... and save the other five scenes as shown in the following screenshot:

Now that we have the project folders set up appropriately and our scenes created, let's start exploring how to work with 2D objects within Unity.
- JavaScript從入門到精通(微視頻精編版)
- Azure IoT Development Cookbook
- PyTorch自然語言處理入門與實戰(zhàn)
- Spring Cloud、Nginx高并發(fā)核心編程
- HTML5+CSS3網(wǎng)站設計基礎教程
- Learning Apache Karaf
- FFmpeg開發(fā)實戰(zhàn):從零基礎到短視頻上線
- Arduino可穿戴設備開發(fā)
- Natural Language Processing with Python Quick Start Guide
- 超簡單:用Python讓Excel飛起來(實戰(zhàn)150例)
- 自己動手構建編程語言:如何設計編譯器、解釋器和DSL
- HikariCP數(shù)據(jù)庫連接池實戰(zhàn)
- Selenium Essentials
- 亮劍C#項目開發(fā)案例導航
- C#程序開發(fā)教程