🎍 🎍 🍣 🎍 🎍
- Download and install Unity 5.1.2 for Mac at Unity Downloads.
- Go to Oculus Developer Downloads. Download and install
- Download and install Leap Motion SDK for OSX
- Install Unity, Oculus SDK and Runtime.
Clone this repository:
$ git clone git@github.com:Sushisushi-sandesu/sushi.git
$ cd sushi
- Open Unity. At the welcome window, click "Open Other".
- Switch to the cloned projects directory, then click "open".
- Now, since the Leap Motion's assets are excluded from the repo, we need to download the assets. Go to "Asset Store", search for "Leap Motion Core Assets", then click "import". When asked to update the APIs, click "I made a backup. Go ahead".
- Now the project should be able to build.
According to the Leap Motion site, one of the requirements for using the Core Assets on OSX is that the Integrated VR Support must be turned off. To turn off the integrated VR support:
- Open Unity.
- Go to Edit -> Project Settings -> Player.
- Make sure the Virtual Reality supported checkbox is unchecked.
As a result of Leap Motion Core Assets importing, asset files under ProjectSettings will be overwritten by binary files. This is harmful to git file management, so we need to re-convert them into text files:
- Go to Edit -> Project Settings -> Editor.
- Select "Force Text" from a select box of Asset Serialization.
Now, since the integrated VR support must be turned off, it is not possible to build and preview the VR app inside Unity. Therefore, building a standalone executable is necessary every time we want to try out the app. To build a standalone executable:
- Open Unity, go to the project we are building.
- Go to File -> Build Settings.
- Uncheck a default selected scene.
- Add and check the scenes to be built. (Usually selecting the scene from Assets/_Scenes and pushing "Add current" would suffice)
- Choose the "Target Platform" as "OSX". Choose the "Architecture" according to your computer's spec. Otherwise the app will appear to be a total blank.
- Click Player Settings and make sure the Virtual Reality supported checkbox is unchecked.
- Click "Build" and choose the path you want to place the executable.
Here, connect Leap Motion and run Leap Motion Controller app.
Finally, run the executable by double-clicking with pushing Option key. And you will see Core Assets Configuration window. In this window, Graphics Quality should be set Beautiful or Fantastic. (if launched app just has white screen, try another quality option)