Build a Unity Scene
This quick series of steps will show you how to quickly build any of the examples onto your device in just a few minutes
- 1.Let's use the HelloWorld scene as an example. In your project window, under the Assets folder, find Placenote/Examples/1_HelloWorld and double click on the HelloWorld Scene. This opens the scene in the editor.
- 2.In the Scene Hierarchy, select PNSessionOrigin and add your API key to the LibPlacenote (Script) in the Inspector panel, as shown in the image below.

In the Unity menu, go to File > Build Settings. You will see a build settings window that looks like the image below. First click "Add Open Scenes" to add all scenes in your project to the build list. Select the scene that you plan on building.

Continuing in the Build Settings window, ensure your Build Platform is set to iOS. If not, switch Platform to iOS. This may take a few minutes. Next, click Player Settings and in the inspector panel that opens up, do the following:
- Make sure the Camera Usage Description is not empty.
- Make sure the Location Usage Description is not empty.
- Change the Bundle Identifier (optional).
A bundle identifier lets iOS identify your app. It should be unique if you plan on experimenting with your app regularly.

Click Build and choose a folder name (such as "App") to save the generated Xcode project.
Useful Tips when building to iOS:
After the first build, if you try to rebuild the Unity project, you will need to choose either "replace" or "append" to generate the Xcode project. "Replace" is essentially a clean build, whereas "Append" is faster since it only updates the build with your changes.
Last modified 3yr ago