The SDK will be downloaded into a folder called PlacenoteSDK-Unity. Let's do a quick test to ensure you have downloaded the Placenote library using git lfs correctly. Open the PlacenoteSDK-Unity folder.
Now navigate to: Assets/Placenote/Plugins/iOS/Placenote.framework/
Right click on the .framework and click "Get Info". The size of this framework folder should be greater than 5MB.
Step 4: Open the project in Unity
The current SDK was created with Unity 2019.2.1f1, so we recommend you use Unity 2019.2.x for Placenote.If you see a non-matching editor error when opening the project, try to continue and see if the import works without issues.
In most cases, the project will import but you might see another error with importing packages. If you see errors, consult our troubleshooting guide.
Unity project opened.
Method 2 - Download the Unity Package File
If you're looking to import Placenote into an existing Unity project, you can download our .unitypackage file and add it to your project. The steps below will show you how to add Placenote SDK into any Unity project.
Create a new Unity project or use your existing project and in the Menu, go to Assets > Import Package > Custom Package and select the .unitypackage you just downloaded to import.
Select the option to import a custom package
When you choose the .unitypackage file, A window will pop up showing you the contents of the package. Click Import to add the entire package to your project.
Import the entire package
Step 3: Add the Neccessary Packages
Once you have imported the .unitypackage, you might see some missing package errors complaining about ARFoundation. Placenote SDK requires the ARKit and ARFoundation packages to be added to your Unity project. You can install these packages in two ways.
1. Modify the manifest.json file
In your project, go to your Packages/ folder and find the manifest.json file. Append the following 3 lines to the file and save it. Unity will automatically update the packages in your Project and resolve these errors
Open the manifest.json file
Copy these lines
Place them anywhere in the file and save
2. Using the Package Manager Window
At the top of the window click on Window > Package Manager and make sure that the AR Foundation package is installed and the version number is 2.1 or later
On the same list, make sure that ARKit XR Plugin is installed and the version number is 2.1 or later.
Step 4: Allow Unsafe Code
Another error you might see after importing the .unitypackage is this:
Unsafe code may only appear if compiling with /unsafe. Enable "Allow 'unsafe' code" in Player Settings to fix this error.
To fix this, go to Player settings and enable "unsafe code" as shown in the screenshot below. This is required for any Unity ARFoundation app.