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

Building and running your HoloLens Unity app

Build the project, and run the debugger. The build will take some time at first. It needs to get all the packages from the NuGet server. It will build all code; then deploy the whole app and all dependencies to the device or emulator; it then starts the app and attaches the debugger. This whole process can take a couple of minutes.

However, after this is done the first time, the next build and deployments will be much faster.

When it starts up, you will be greeted in the virtual world with a nice Made With Unity logo. After a little while, this goes away. In front of you, about three meters away and about half a meter below your eyes, you will see a white sphere floating in mid-air.

Walk around it! Look at it! Crawl underneath it! Try and grab it!

That last part doesn't work. The default near clipping plane in Unity is 30 centimetres, meaning that everything that is closer than that will not be rendered. Microsoft says it is best to set the clipping plane to 85 centimetre but, to be honest, 30 works just fine, and that is what they use in their own applications anyway. So I tend to keep it at that.

Of course, you can never grab the object; it is virtual. But to be honest -- you were tempted, right?

主站蜘蛛池模板: 科技| 西充县| 仪征市| 临海市| 鹿泉市| 奉节县| 嘉义市| 满城县| 嘉善县| 弥渡县| 铁岭市| 团风县| 镇安县| 沧州市| 阿拉善盟| 湘乡市| 德兴市| 新蔡县| 丹寨县| 孝义市| 进贤县| 利辛县| 遂昌县| 德清县| 磴口县| 寿阳县| 巴林右旗| 汉阴县| 高唐县| 长汀县| 昌江| 淅川县| 象山县| 武定县| 开平市| 怀远县| 酒泉市| 合作市| 汤原县| 乐亭县| 平昌县|