This guide will walk you through getting your development environment set up to create eye tracking-enabled VR applications for Hack the North.
In order to route eye tracking data from the tracking hardware installed into the Meta Quest 2 headset through to your Unity application, you’ll need to install some AdHawk software on your computer.
Unity Hub is used to keep Unity editors, projects, and additional resources organized.
Next, install Unity 2021.1.21f1. We can only support this particular version for the Hack the North work, so we strongly recommend using this version only. Working with another version may introduce unexpected bugs or incompatibilities with our API or the Meta Quest 2 headset plugin.
While setting up the installation of the Unity editor, you’ll be able to enable additional modules. Ensure you check off:
If you forget to add modules for your editor during the initial installation, you can add them after the installation has finished:
After the Unity editor is installed with the correct modules added, you should see it listed on the Installs tab.
To use Unity, you’ll need a license. But before you can get a license, you’ll need a Unity account. To create a Unity account: - open Unity Hub - click on the profile icon in the top right corner of the window - select ‘Create account’ - you’ll be redirected to a web page in your browser where you can provide the necessary information to create an account
In order to use Unity, you’ll need to create and install a license. Unity is available for personal use for a wide range of folks.
To create a license: - open Unity Hub - click on the profile icon in the top left corner - sign in with your newly created (or existing) Unity account - click on the profile icon in the top left corner - select ‘Manage licenses’ from the drop down menu
The AdHawk Unity SDK is provided as a Unity project containing several example scenes, components, and the code to tie them together.
You can access the SDK and example code from the AdHawk github repo. Save it to a local directory, then add it to Unity Hub:
To open the project, double click on the project in the Projects tab. Your Unity editor should launch with the project code loaded.
Unity is a complex application. In order to clearly access and understand the components, scripts, and scenes provided as part of the AdHawk Unity SDK and example code, the following layout is recommended (you’re welcome to use a different layout, of course, but a layout such as this is quite effective)