Hello, Cube!
2019.2.x
v0.22.0
0.97.x
- Download the latest Source Code .
zip
release file from https://github.magicleap.com/DevRelSamples/Unity-Project-Template/releases/. - Extract the zip file in a directory of your choice.
- Using Unity Hub, download Unity 2019.2.x and make sure Lumin support is checked during installation
ADD
the project using Unity Hub- Open the project using Unity Hub
- Under File > Build Settings, make sure the build target is Lumin
- Under Unity preferences, set the MLSDK path
- Under project settings > publishing settings, set your cert path (and make sure the privkey file is in the same directory. If this is confusing, refer to and read our docs. There’s also a
README
in the privkey folder after unzipping) - Make sure USB debugging is enabled between your device and computer (which requires MLDB access) and you’re allowing untrusted sources
- Open the
HelloCube
Scene fromAssets
>Scenes
>HelloCube
- Build and Run
- Accept the cert if prompted after build is complete
- There will be a cube 1 meter in front of where your current headpose session started