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

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.

主站蜘蛛池模板: 盐城市| 阿坝县| 沙河市| 白沙| 卢湾区| 五河县| 新建县| 沧州市| 右玉县| 新巴尔虎右旗| 毕节市| 若尔盖县| 西安市| 太保市| 库尔勒市| 巴彦淖尔市| 烟台市| 响水县| 石泉县| 万山特区| 祁东县| 额尔古纳市| 浮梁县| 皋兰县| 松阳县| 乌鲁木齐县| 太康县| 伊春市| 延川县| 手游| 杭锦旗| 汕尾市| 镇安县| 土默特左旗| 盐亭县| 柏乡县| 无锡市| 吴桥县| 如东县| 金寨县| 湘潭县|