-
Notifications
You must be signed in to change notification settings - Fork 100
MetaioAndUnity
Matt Harley edited this page Aug 30, 2014
·
10 revisions
Version: metaioSDK-5.5.2
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
- 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
- Select your app in the top panel and then select the SDK Signature from the lower panel. (e.g. WYiJpNgSp5BSh1MzmaHxRggQFFzm3FpQ4ND9XCVjrk0=)
- 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')
- (optional) They also change the Default Orientation to Landscape Left
- In the Heirarchy tab, click metaioSDK. This should open the MetaioSDK properties in the Inspector tab
- 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 - 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
https://dev.metaio.com/storage-folder/getting-started/unity3d/creating-new-ar-application/
- Open
ExampleApp/Unity-iPhone.xcodeproj
- Drag the file
ExampleApp/Libraries/metaiosdk
into the root of your new Xcode project - You'll need to add some extra libraries
- Click on the root of your project (Unity-iPhone)
- 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
- Then click on Build Phases, expand Link Binaries with Libraries and add:
- libxml2.2dylib
- Security.framework
- CoreImage.framework
- You should be all good to go. Hit build and run!
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/