Version: 2021.3
言語: 日本語
Unity での Android の権限
ランタイム権限のリクエスト

アプリケーションの権限の宣言

Android applications declare what permissions they require in their Android App Manifest. This page explains how to manage permissions for an Android application. For a list of the possible permissions, see Manifest.permission.

Android アプリマニフェストファイルの修正と権限の管理は、以下のいずれかの方法で行えます。

  • Create a custom Unity Unity Library Manifest template for Unity to generate the application’s Android App Manifest file from.
  • プロジェクトをエクスポートし、Android Studio で Android アプリマニフェストファイルを修正する

Note: Depending on the Player Settings and Unity APIs that the application uses, Unity automatically adds some required permissions to the Unity Unity Library Manifest. For more information, see Unity-handled permissions.

Create a template Unity Unity Library Manifest

The simplest way to add new permissions for an application is to create a template Unity Unity Library Manifest file and add the permissions to it.

For more information, see Create a template Unity Unity Library Manifest file.

Android Studio の使用

最終的な Android アプリマニフェストファイルにどのパーミッションを含めるかを完全に制御するには、プロジェクトをエクスポートし、Android Studio で Android アプリマニフェストを編集してください。

For more information, see Edit the Android App Manifest in Android Studio.

その他の参考資料

Unity での Android の権限
ランタイム権限のリクエスト