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

Saving the scene

Overall, the scene is looking good and is worth saving to disk so that we don't lose it. To save the scene, perform either of the following steps:

  • Choose File | Save Scene from the application menu.
  • Alternatively, press Ctrl + S on the keyboard or else.

If you're saving the scene for the first time, Unity displays a pop-up save dialog, prompting you to name the scene (I called it Level_01 and saved it in the Scenes folder). After saving the scene, it becomes an asset of the project and appears in the Project panel. This means that the scene is now a genuine and integral part of the project and not just a temporary work in progress as it was before. Notice also that saving a scene is conceptually different from saving a project. For example, the application menu has entries for Save Scene and Save Project. Remember, a project is a collection of files and folders, including assets and scenes. A scene, by contrast, is one asset within the project and represents a complete 3D map that may be populated by other assets, such as meshes, textures, and sounds. Thus, saving a project saves the configuration between files and assets, including scenes. Saving a scene, in contrast, just retains the level changes within that specified scene:

Figure 1.48 – Saved scenes are added as assets within your project

Figure 1.48 – Saved scenes are added as assets within your project

Tip

You can see in Figure 1.48 that I've saved my scene in the Scenes folder. If you want to save it somewhere else, folders can be created in your project by right-clicking on any empty area in the Project panel and choosing New Folder from the context menu, or else choose Assets | Create | Folder from the application menu. You can easily move and rearrange assets among folders by simply dragging and dropping them. And that's it! The scene is saved to a file at the location you specified. As we progress through the book, make sure you regularly save your scenes to ensure that you do not lose any progress.

主站蜘蛛池模板: 黄浦区| 龙胜| 阳江市| 昭苏县| 万载县| 弥渡县| 宜昌市| 贡觉县| 章丘市| 万安县| 青龙| 崇左市| 天镇县| 吉木乃县| 图们市| 都匀市| 安达市| 泽普县| 吉木萨尔县| 阿克苏市| 武安市| 东光县| 井冈山市| 上饶市| 安溪县| 内江市| 大足县| 阜康市| 延吉市| 东宁县| 新河县| 文安县| 买车| 永仁县| 伊金霍洛旗| 静乐县| 五寨县| 故城县| 卢龙县| 乌鲁木齐县| 清苑县|