Creating your first project
This section is the third out of the 4 steps to the Get Started guide to create a Unity Desktop AR app using the Holo-SDK. You should have your computer for a Desktop AR system and have a Holo-SDK license before starting this section. If you haven't, visit Get Started.
Create a Unity project for Holo-SDK
Holo-SDK is a Unity-plugin for developing a Desktop AR application. You need to have Unity installed on your system before continue. If not, go to Unity website to download and install the software engine on your computer.
- In Unity, create a new Unity project, choose 3D project.
- Navigate to
C\:HoloSDK
, in the folder, you will see the folder calledHoloUnitySDK
.
- In
Unity
, drag the folderHoloUnitySDK
to be underAssets
in theProject
window.
- Under
Assets
, expandHoloUnitySDK
, and locate theHoloPrefabs
.
- Drag
HoloUnitySDK.prefab
toSampleScene
under theHierarchy
window.
Make Your Applications
- In
SampleScene
, expandHoloUnitySDK
, you will seeHoloStage
andSettings Canvas
. ExpandHoloStage
, you will seeHoloObjects
.
Put all of your objects under HoloObjects
for any objects that you want to create holographic effects. Settings Canvas
object is part of HoloUnitySDK
. This prefab cannot be modified, and it is used for obtaining and modifying a number of parameters required for running holographic applications. You can leave Settings Canvas
objects as they are. You can learn more about each Holo-SDK Unity Components at Holo-SDK Manual: Unity Components.
- [Optional] You can disable the
HoloOcta
object inHoloUnitySDK
by untickIs Scroll Wheel Is on
in theHoloOcta
Inspector.
HoloOcta
is a mouse pointer that can control your application in a 3D environment so that you can control the pointer in z- direction. If you disable HoloOcta
you will not be able to control the pointer in the z-direction. See the detail of HoloOcta
in HoloUnitySDK.
Adding a Sample Model
HoloUnitySDK
comes with a sample scene to help you get started in making your Holo-Apps. So let's add a model from the sample scene to your project.
- Locate the
ExampleModel
prefab inAssets > HoloUnitySDK > HoloPrefabs
folder.
- Add the
ExampleModel
prefab into your project's scene as a child ofHoloObjects
.
- You should the example model appearing in front of the
HoloScreen
.
To recap, we have now created a Unity project. Then, we have added the prefabs from the Holo-SDK to the project. Lastly, we added some models into the project under the HoloObjects
prefab in the scene.
In the next step, we will run the application and play with it in a Desktop AR environment.