Skip to content
Matt Harley edited this page Aug 30, 2014 · 10 revisions

Getting Started with Metaio on Unity

Version: metaioSDK-5.5.2

Tutorial Video Notes

Main Tutorial

https://dev.metaio.com/webinars/metaio-sdk-unity-fundamentals/

  • What's different?
    • References http://docs.metaio.com/bin/login/Main/MobileGettingStartedUnity which I need a login for!
    • Folders in Project tab under Assets:
    • Resources director no longer has image and tracking data
    • There's no Scenes directory
    • The stuff about making the tracking XML is no longer valid. Tracking assets are now under Assets > StreamingAssets > *.xml
  1. Register you app at http://my.metaio.com/index.php?state=portal (e.g. Unity Test, 'com.felixlab.unitytest'). This will give you a n
  2. Select your app in the top panel and then select the SDK Signature from the lower panel. (e.g. WYiJpNgSp5BSh1MzmaHxRggQFFzm3FpQ4ND9XCVjrk0=)
  3. In Unity, go to File > Build Settings and in both the iOS and Android under Other Settings, change the Bundle Identifier to your app identifier above (e.g. 'com.felixlab.unitytest')
  4. (optional) They also change the Default Orientation to Landscape Left
  5. In the Heirarchy tab, click metaioSDK. This should open the MetaioSDK properties in the Inspector tab
  6. There should be an SDK Signature box where you need to paste in your SDK Signature from above (e.g. WYiJpNgSp5BSh1MzmaHxRggQFFzm3FpQ4ND9XCVjrk0=). You can also access this from Project under Assets > StreamingAssets > MetaioSDKLicense.xml
  7. You should be all good to go. Go back to File > Build Settings, select your app platform (iOS or Android) and click Build. I've exported mine as ExampleApp

iOS

https://dev.metaio.com/storage-folder/getting-started/unity3d/creating-new-ar-application/

  1. Open ExampleApp/Unity-iPhone.xcodeproj
  2. Drag the file ExampleApp/Libraries/metaiosdk into the root of your new Xcode project
  3. You'll need to add some extra libraries
  4. Click on the root of your project (Unity-iPhone)
  5. Open the Unity-iPhone Target by clicking in the top-left corner of the Editor window and selecting Unity-iPhone under Targets rather than Projects
  6. Then click on Build Phases, expand Link Binaries with Libraries and add:
  • libxml2.2dylib
  • Security.framework
  • CoreImage.framework
  1. You should be all good to go. Hit build and run!

Advanced Tutorial

http://dev.metaio.com/webinars/metaio-sdk-unity-advanced/ http://dev.metaio.com/webinars/metaio-sdk-unity-advanced-ii/ https://dev.metaio.com/webinars/unity-advance-interactions-with-the-metaio-sdk/

Free Models for Unity

Clone this wiki locally