# 设置 Android 应用程序的入口点

> Change the application entry point that your Android application uses.

您可以通过 [Android Player Settings](/engine/6000.0/manual/platform-specific/android/getting-started/class-player-settings.md) 控制应用程序的入口点。您可以为应用程序的开发版本设置多个入口点，这有助于快速比较不同入口点之间的功能和性能。但是，对于要发布的正式版本，您只能选择一个入口点。如果选择多个，Unity 会显示警告信息。

要为应用程序设置入口点，请按照以下步骤操作：

1. 打开 [Android 播放器设置 (Android Player Settings)](/engine/6000.0/manual/platform-specific/android/getting-started/class-player-settings.md)。
2. 转到 **Other Settings** > **Configuration** > **Application Entry Point**。
3. 在 **Application Entry Point** 部分中，选择要使用的应用程序入口点。

如果您为应用程序选择了多个入口点并进行构建或导出，Unity 会在 `activity` [Android 应用程序清单](/engine/6000.0/manual/platform-specific/android/introducing/manifest.md)中生成多个条目；每个应用程序入口点对应一个条目。如果在 Android Studio 中打开项目，则可以在 [Run/Debug Configurations 对话框](https://developer.android.com/studio/run/rundebugconfig#opening)中指定要运行/调试的入口点。如果在设备上安装构建的应用程序，应用图标数量将与入口点数量一致。

## 其他资源##additional-resources

* [Activity 应用程序入口点](/engine/6000.0/manual/platform-specific/android/developing/application-entries/activity.md)
* [GameActivity 应用程序入口点](/engine/6000.0/manual/platform-specific/android/developing/application-entries/game-activity.md)
