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

File organization

Keeping your Unity project organized is incredibly important. As your project moves from a small prototype to a full game, more and more files will be introduced to your project. If you don't start organizing it from the beginning and keep planning to tidy it up later on, things may get quite out of hand as the deadlines keep coming.

Setting up a project structure at the start and sticking to it will save you countless minutes in the long run. It will only take a few seconds and is what we'll be doing now.

  1. Go to the Assets folder from the Project tab in the bottom-left corner of the screen. Once there, click on the Create drop-down menu. Click on Folder and you'll notice that a new folder has been created inside your Assets folder.

    Tip

    Similarly, you can right-click on the negative space within the Project window to create a folder.

  2. After the folder is created, you can type in the name of your folder. Once it is named, press Enter. Let's now create a folder called MyGame. We also need to create folders for the following directories inside the MyGame folder:
    • Prefabs
    • Scenes
    • Scripts

Note

If you happen to create a folder inside another folder, you can simply drag and drop it from the left toolbar. If you need to rename a folder, just simply click on it once and wait, you'll be able to edit it again. Alternatively, on the keyboard you can press F2.

Your project should now look like this:

File organization
主站蜘蛛池模板: 方山县| 尖扎县| 于都县| 旅游| 中宁县| 高陵县| 漯河市| 浑源县| 青冈县| 五常市| 佛学| 凤冈县| 衡山县| 恭城| 永平县| 同江市| 措勤县| 潍坊市| 宁陕县| 中牟县| 宜兰县| 柏乡县| 成安县| 乌兰浩特市| 长沙县| 深水埗区| 克什克腾旗| 茶陵县| 建宁县| 临清市| 辽源市| 大洼县| 鄂伦春自治旗| 连江县| 许昌县| 洱源县| 承德县| 六枝特区| 九江市| 启东市| 江门市|