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

Setting up the project

At this point, I have assumed that you have Unity freshly installed and have started it up.

  1. With Unity started, go to File | New Project. Select Project Location of your choice somewhere on your hard drive, and ensure you have Setup defaults for set to 2D. Once completed, select Create. At this point, we will not need to import any packages, as we'll be making everything from scratch. It should look like the following screenshot:
  2. From there, if you see the Welcome to Unity pop up, feel free to close it out as we won't be using it. At this point, you will be brought to the general Unity layout, as follows:

Note

Again, I'm assuming you have some familiarity with Unity before reading this book; if you would like more information on the interface, please visit http://docs.unity3d.com/Documentation/Manual/LearningtheInterface.html.

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 from the beginning, you'll keep planning to tidy it up later on, but as deadlines keep coming, things may get quite out of hand.

This organization becomes even more vital when you're working as part of a team, especially if your team is telecommuting. Differing project structures across different coders/artists/designers is an awful mess to find yourself in.

Setting up a project structure at the start and sticking to it will save you countless minutes of time in the long run and only takes a few seconds, which is what we'll be doing now. Perform the following steps:

  1. Click on the Create drop-down menu below the Project tab in the bottom-left side of the screen.
  2. From there, click on Folder, and you'll notice that a new folder has been created inside your Assets folder.
  3. After the folder is created, you can type in the name for your folder. Once done, press Enter for the folder to be created. We need to create folders for the following directories:
    • Animations
    • Prefabs
    • Scenes
    • Scripts
    • Sprites

    Note

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

    You can also use Ctrl + D to duplicate a folder if it is selected.

  4. Once you're done with the aforementioned steps, your project should look something like this:
主站蜘蛛池模板: 垦利县| 丹寨县| 汤原县| 石阡县| 长宁区| 竹北市| 基隆市| 子长县| 曲水县| 体育| 沈丘县| 保亭| 锡林浩特市| 万山特区| 新竹县| 上虞市| 蒙山县| 嘉鱼县| 凉山| 将乐县| 綦江县| 湄潭县| 张掖市| 双桥区| 蕉岭县| 泗洪县| 图们市| 监利县| 阿克| 汕头市| 中宁县| 济宁市| 丰镇市| 雷山县| 行唐县| 富阳市| 禹州市| 读书| 隆回县| 舟曲县| 鄯善县|