上QQ阅读APP看书,第一时间看更新
Configuring Unity Player Settings for Android
We now will configure your Unity project to build for Android. First, ensure Android is your target platform in Build Settings. Unity provides a great deal of support for Android, 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. The minimum required to build our demo project are Bundle Identifier and Minimum API Level:
- In Unity, navigate to File | Build Settings and examine the Platform pane.
- If Android is not presently selected, select it now and press Switch Platform.
- If you have the Build Settings window open, press the Player Settings… button. Or, you can get there from the main menu and Edit | Project Settings | Player.
- Look across at the Inspector panel, which now contains the Player Settings.
- Find the Other Settings group of parameters, and click the header bar (if it’s not already opened) to find the Identification variables
- Set the Bundle Identifier to a unique name for your product that resembles a traditional Java package name. An ID is required for all Android apps. Typically it is in the format com.CompanyName.ProductName. It must be unique on the target device, and eventually, unique in the Google Play store. You can choose whatever name you want.
- Set a Minimum API Level for your target platform (as listed earlier).
Again, there are many other options in the Player Settings but we can use their defaults for now.