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

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.

主站蜘蛛池模板: 遂平县| 延寿县| 西吉县| 长汀县| 乾安县| 达孜县| 得荣县| 荆州市| 隆化县| 邵阳县| 志丹县| 南昌市| 泊头市| 宜丰县| 姚安县| 舞阳县| 霍城县| 大连市| 公主岭市| 元朗区| 江都市| 安宁市| 常州市| 田东县| 应城市| 东乌珠穆沁旗| 呼和浩特市| 资溪县| 阜南县| 凤阳县| 浮山县| 昌平区| 延寿县| 凤山市| 合作市| 绥阳县| 勐海县| 邵阳县| 邳州市| 汾阳市| 普格县|