Configuring the Unity player settings for iOS

We will now configure your Unity project to build for iOS. First, ensure iOS is your target platform in Build Settings.

  1. In Unity, navigate to File | Build Settings and examine the Platform pane. If iOS is not presently selected, select it now and press Switch Platform, as shown in the following screenshot. It may take a while to reimport the assets to convert them into iOS-compatible formats.

Unity provides a great deal of support for iOS, including configuration and optimization for runtime features and the capabilities of mobile devices. These options can be found in player settings. We only need to set a couple of them now, which is the minimum that is required to build our demo project.

  1. If you have the Build Settings window open, press the Player Settings... button. Alternatively, you can get there by navigating to Edit | Project Settings | Player. Look across at the Inspector panel, which now contains the player settings.
  2. Find the Other Settings group of parameters and click on the header bar (if it's not already opened) to find the Identification variables, as shown here:
  1. Set Bundle Identifier to a unique name for your product that resembles a traditional Java package name. An ID is required for all iOS apps. Typically, it is in the com.CompanyName.ProductName format. It must be unique on the target device, and eventually, unique in the App Store. You can choose whatever name you want.

 

  1. In the Configuration section, fill in Camera Usage Description with something like Augmented Reality to ask the user permission to use the camera:

Again, there are many other options in the player settings, but we can use their defaults for now.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset