Setup Guide

Set Up the Unity Development Environment
Nreal Install MAXST AR SDK for Unity
Run Sample App on Nreal Glasses with Unity (Android)


Set Up the Unity Development Environment

Requirements

  • To use MAXST AR SDK for Unity, you need basic knowledge of Unity development tools and Unity development.
  • For more information on Unity development tools, visit Unity Website.
  • The MAXST AR SDK supports nreal light4 from nreal, a device for smart glasses.
  • The MAXST AR SDK For Nreal can only be installed through Unity Android and only works with Space Tracker and FusionTracker.

Nreal Install MAXST AR SDK for Unity

  1. Download MAXSTARSDK_Unity and MAXSTARSDK_FOR_NRSDK from the Unity MAXST AR SDK downloads,
    Download NRSDKForUnity_Release from the Nreal developer page.

  2. Open or create a Unity project.

  3. Select Assets / Import Package /Custom Package from the Unity Editor menu, and then select the downloaded Package to import all of MAXSTARSDK_Unity, MAXSTARSDK_FOR_NRSDK, and NRSDKForUnity_Release.

  4. For MacOS, download the Unity for MacOS Plugin, unzip it, and copy the MaxstAR.bundle file to Assets/Plugins.

  • Since 2021.1 and earlier versions do not support Notarization on MacOS, you will need to run the following command to de-secure it.

    cd Assets/MaxstAR/Plugins

    xattr -cr MaxstAR.bundle

    sudo spctl —master-disable


Run Sample App on Nreal Glasses with Unity (Android)

To run the MAXST AR SDK sample app for Unity on Smart Glasses, follow these steps.

  1. Install MAXST AR SDK for Unity.

  2. In Unity Editor, select 'File >Build Settings'.

  3. In the Project View, add scenes from the 'Assets > MaxsARSamples >Scenes' folder.

    SetUpAddScene

  4. Place HomeForNreal Scene at the top.

    SetUpHomeScene

  5. In the Platform window, click the Player Settings button.

    SetUpPlayerSet

  6. Set the Minimum API Level to API level 26 or higher in Other Settings.

    Minimum API Level

  7. In the Project Settings window, check Other Settings > Identification > Override Default Package Name, and then enter a Package name.

    setUpOtherSet

  8. Enter the license key. For details on how to enter the license into Unity, please refer to License Key, and to get the license key, please refer to License Manager.

  9. To set up an Android 64-bit build, in the Project Settings window, go to Other Settings > Configuration > Scripting Backend drop-down menu > change to IL2CPP, and check Target Architectures > ARM64.

    setUp64bitBuild

  10. To use SpaceTracker Tracker series added in MAXST AR SDK, please add the following build settings.

    • If Auto Grapchis API is checked in Other Settings, uncheck it
    • If you have Vulkan in the Graphics APIs in Other Settings, delete it.
    • If Multithreaded Rendering is selected in Other Settings, uncheck it.

    RemoveVulkan

  11. Set Minify to None in the Publishing Settings.

    Setting Minify

  12. After connecting the device, select 'File >Build & Run'

    ※ If the Android SDK is not properly configured, the file selection window of the message(Select Android SDK root folder) may appear. You can do this by choosing Edit > Preferences from the Unity Editor menu bar.

    SetUpPref