by sanukin39

Android Runtime Permission for Unity

133 Stars 29 Forks Last release: almost 3 years ago (v1.2) MIT License 29 Commits 3 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:


Plugin for use runtime permission at unity. It works only Android Devices runtimepermission


Unity5 or higher


Use unitypackage at the release page


1 Add uses-permission to AndroidManifest


2 Add Custom Activity and SkipPermissionsDialog to Android Manifest


3 Add UniAndroidPermission.prefab at boot scene ※ Don't rename object name!!

4 Call method before function which need permissions

Check if permission permitted.

UniAndroidPermission.IsPermitted (AndroidPermission.WRITE_EXTERNAL_STORAGE)

Request Permission

public void RequestPermission()
    UniAndroidPermission.RequestPermission(AndroidPermission.WRITE_EXTERNAL_STORAGE, OnAllow, OnDeny, OnDenyAndNeverAskAgain);

private void OnAllow() { // execute action that uses permitted function. }

private void OnDeny() { // back screen / show warnking window }

private void OnDenyAndNeverAskAgain() { // show warning window and open app permission setting page }




The MIT License

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.