Unity

Prerequisites

  • XCode >= 11.0

  • Cocoapods >= 1.9.1 (can be installed via brew)

  • Unity3D >= 2019.3.14f1

Overview

The app demonstrates simple anchoring of content, in this case - colored boxes. To test the anchoring is working, tap on the screen in some locations to leave boxes there and restart the app. The boxes shall appear where you left them.

Build instructions

  • Open Empty project in Unity. image9

  • Go to: Window -> Package Manager

  • Click on the “+” button on the uppermost-left corner, and click on “Add package from git URL...” image3

  • In the text box copy-paste the plugin-url and press Add: https://gitlab.com/resight/unity-plugin.git image1

  • At this point, ResightSDK is good to go. But we recommend experimenting with our sample app. To do so, still in Package Manager, select “Import Into Project” image4

  • In the project pane, double click the “HelloWorld” scene to load it into the Editor.

  • Locate the “LibResight” object, click on it and fill in the “Dev Key” as being provided to you during the registration process image7

  • Go to File->Build Settings: switch platform to “iOS” and click the “Add Open Scenes” button image6

  • Hit the “Build And Run” and wait till Unity exports the files to the corresponding XCode project. (Usually, XCode is automatically open when this process is done).

  • Once in XCode, select “Unity-App” in the project pane and go to “Signing & Capabilities”. There you should select your signing key (out of the scope of this tutorial). image12

  • Connect your device and hit “Play”. Wait for the app to build and install.

Last updated

Was this helpful?