Version: 2023.2
언어: 한국어
Unity의 Android 권한
런타임 권한 요청

애플리케이션에 대한 권한 선언

Android 애플리케이션은 Android 앱 매니페스트에서 필요한 권한을 선언합니다. 이 페이지에서는 Android 애플리케이션에 대한 권한을 관리하는 방법을 설명합니다. 가능한 권한 리스트는 Manifest.permission을 참조하십시오.

다음 방법 중 하나를 사용하여 Android 앱 매니페스트 파일을 수정하고 권한을 관리할 수 있습니다.

  • Create a custom Unity Library Manifest template for Unity to generate the application’s Android App Manifest file from.
  • Use the Android Project Configuration manager to modify the Android App Manifest file.
  • 프로젝트를 익스포트하고 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 Library Manifest. For more information, see Unity-handled permissions.

Create a template Unity Library Manifest

Unity uses templates to produce the final Gradle project files. You can override the template that Unity uses and new permissions for an application via the template.

For more information, refer to Modify Gradle project files with Gradle template files.

Use the Android Project Configuration Manager

The Android Project Configuration Manager represents Gradle project files in C#. You can use the API to add new permissions for an application.

For more information, refer to Modify Gradle project files with Android Project Configuration Manager.

Android Studio 사용

최종 Android 앱 매니페스트 파일에 있는 권한을 완전히 제어하려면 프로젝트를 익스포트하고 Android Studio에서 Android 앱 매니페스트를 편집합니다.

For more information, refer to Modify Gradle project files with Android Studio.

추가 리소스

Unity의 Android 권한
런타임 권한 요청
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961