Getting Started with Merge Cube
(Merge Cube SDK v1.2.2 for Unity 2017.2 or higher)
Thank you for your interest in the Merge Cube SDK. Here are a few things to go over before you get started developing these exciting new experiences.
- Merge Cube Development Kit
- An iOS or Android device
- A mobile AR viewer such as the Merge VR/AR Goggles
- A computer or laptop
- Merge Cube Unity SDK
- Windows or Mac
- XCode (Mac only)
Getting the Vuforia License Key
As of Unity version 2017.2, Vuforia has now been built into Unity as an optional default component! However, you will still need a Vuforia license key by visiting the Vuforia developer portal.
- Register a Vuforia account at https://developer.vuforia.com/
- Once you are logged in, navigate to the “Develop” tab and create a new License Key
- Copy this license key for use in the upcoming steps
Getting the Merge Cube SDK
- Download our SDK below
The minimal version of Unity supported is 2017.2, contact Merge for older versions of Unity.Download
See what's new in SDK 1.2.2 ReleaseNote.
By downloading the Merge Cube SDK, you are stating that you have read and agree to our License Agreement.
Getting the Merge Cube SDK License Key
To receive a MergeCubeSDK License Key, please email us at firstname.lastname@example.org with your Company Name, Contact Name and Info, Email, and App Name. We will reply with a valid key.
Setting up Android or iOS
To get started in Unity with Android, see this page
To get started in Unity with iOS, see this page
Setting up a scene with Merge Cube
- Open Unity 2017.2
- Create a new project
- Under File -> Build Settings, switch the target platform to either Android or iOS
- Under Edit -> Project Settings -> Player Settings -> XR Settings, ensure that Vuforia Augmented Reality Support is enabled
- Create an ARCamera via the Menubar -> GameObject -> Vuforia -> ARCamera
- Import Vuforia components when prompted
- Under the Resource folder in the project files, click on the Vuforia Configuration file
- In the Configuration File, paste your Vuforia license key into the “App License Key” text field
- Import the Merge Cube SDK
- Under the Merge menu in the menu bar, select Settings Initializer and click “Yes”
- Under the Merge menu in the menu bar, select “Make Quickstart Scene”
- Under the Resource folder in the project files, click on the MergeConfigurationFile, and input the Merge Developer License key that we have provided you into the License Key field.
If you do not have one, please email us at email@example.com with your Company Name, Contact Name and Info, Email, and App Name. We will reply with a valid key
- Any objects placed under the MergeMultiTarget -> MergeMultiTargetScalerRoot will now respond to tracking events when the Merge Cube is lost or found
- Do note that these objects should not be under the reference cube, as the reference cube will be destroyed at runtime. The reference cube is a visual representation of the Merge Cube’s expected size. Objects placed on the cube should use that as reference for how big the cube is.
- If you find that the cube’s dimensions in the Unity scene are too small or too big, the size of the cube can be adjusted in the MergeConfigurationFile, via the Cube Scale Factor. ( Located in the Resources folder in the Assets folder ). Adjusting this will scale the MergeMultiTargetScalerRoot to the new dimension. By default, this is set to the default Unity size of 1 unit or 1 meter. Common applications of changing this setting include scaling it for physics and lighting purposes.
- If you are using our Permissions Processor, please read the supplied documentation located in the MergeCubeSDK > _Doc folder
- If you are using our IntroSequencer, please read the supplied documentation located in the MergeCubeSDK > _Doc folder
- If you are building to Android, please move the Android Manifest file from the MergeCubeSDK -> Plugins -> Android folder out into the Assets -> Plugins -> Android folder