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

Our first HoloApp in Unity3D

When you have all the tools installed, it is time to start up Unity. Immediately, you will notice a big difference between Unity projects and Visual Studio projects. The latter has solution files and project files that determine what goes together to create a project. Unity, however, uses a folder to determine what a project is.

When you start up Unity, you will be greeted by a screen that gives you the option to open a previous project or to create a new one. When you select New Project, you will get this:

The Unity new project screen

Unity wants you to give the project a name, a folder where the files will be stored, and an organization to which the license is assigned.

We can choose to have a 3D or 2D application, which we will leave to the default 3D option. The Add Asset Package gives you the option to add additional packages, but we will not use that here for now. The Analytics option is quite handy to debug your app.

Press Create project to have Unity create the necessary folders and files for you.

The default Unity screen

The screen we see is what the game looks like. For now, this is an empty screen with some sort of ground and sky above it. In the left-most panel, you see the objects currently available. Unity maintains a hierarchy of objects, and this is where you can see them. In the lower part of the screen, you see the Assets we have in our project. Currently, we do not have any assets, so this is empty, but we will later add some.

The two items we do have are a camera and a light source. The light is important--without light there is nothing to see in our virtual world. The camera is usually the way we look at the scene, but in the HoloLens this works slightly different--we need two cameras. One for each eye, remember? Fortunately, the tool takes care of this for us, so we do not need to worry about it.

主站蜘蛛池模板: 徐州市| 枝江市| 泸定县| 加查县| 葵青区| 咸丰县| 周至县| 乌鲁木齐县| 岳池县| 崇信县| 高阳县| 景谷| 石嘴山市| 中方县| 石门县| 普定县| 清苑县| 松阳县| 基隆市| 布尔津县| 华亭县| 芒康县| 吐鲁番市| 东宁县| 辽宁省| 盐津县| 遂昌县| 平阳县| 宜阳县| 亳州市| 阳西县| 泸西县| 高密市| 城固县| 宜州市| 体育| 临朐县| 交口县| 东海县| 岳西县| 车险|