官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 二手房| 博乐市| 成武县| 犍为县| 阳山县| 扬州市| 西华县| 石狮市| 田阳县| 武威市| 延川县| 威远县| 铜梁县| 田阳县| 溆浦县| 信阳市| 奉贤区| 双辽市| 建瓯市| 黄浦区| 景德镇市| 平安县| 衡南县| 黔西县| 周口市| 横峰县| 额济纳旗| 南华县| 鸡泽县| 克东县| 金寨县| 邯郸市| 格尔木市| 东平县| 新宁县| 景洪市| 井研县| 图木舒克市| 和政县| 定襄县| 淅川县|