Unity Hub would like to access your Photos

I have received a warning popup stating that Unity Hub would like to access my Photos. Why does it need this access? Please see attachment for more details. Thanks

Did you check your computer for viruses?

Do you use packages that need to access your photos?

No.

No

Has anyone else experienced this? Also, apparently Unity Hub has requested access to my Contacts and Camera.

Yes, I have – it’s requested access to Photos and Microphone for me – both of which we use in our app being developed in Unity.

I believe it’s because Unity Hub is the Parent Process for the Unity Editor instances running, and so permissions for Photos or Microphone in your project would be tied to Unity Hub:
4064212--353989--upload_2019-1-4_11-28-11.png

The reason you’ve never seen this BEFORE, with say, pre-Unity Hub, is because macOS Mojave just recently added these permissions.

3 Likes

I didn’t know there was such a thing as Parent Process. Thanks for the info @MechEthan .

You bet. It should be added to an FAQ, because its really not obvious.

@joeksy @Charles_Beauchemin May I suggest a pinned FAQ post?
Starting content:

  • (Please?)
  • Bug report guidelines (e.g. what version, what OS, attach logs snippet)

  • Log file locations:

  • Windows: %UserProfile%\AppData\Roaming\UnityHub\logs

  • Mac: ~/Library/Application support/UnityHub/logs

  • macOS Mojave will prompt you to give Unity Hub various access permissions because it is the parent process of your Unity editor projects that use those permissions.

  • Unity Hub is optional, you can always launch Unity with command-line arguments: https://docs.unity3d.com/Manual/CommandLineArguments.html

  • Yes, we plan to add a “Release Notes” button next to each Unity version. (This could be its own pinned topic! lol)

  • etc.

(Also, the “Hub Preview Documentation” is way out of date.)

1 Like

very good idea! we’ll do this.

1 Like

OMG! Thank you Ethan_VisualVocal for clearing this up.
Couldn’t understand why my Unity project was hanging on Play after updating OS to Mojave! I wasn’t getting the request from Unity Hub so Unity was just hanging. Only after I ran a demo scene did Unity Hub ask for permissions. Now my scene runs as expected.

This really needs to be made common knowledge.

Thanks again Ethan_VisualVocal. Legend!

1 Like

Hey @MechEthan is there any way to force/manually set Unity Hub permissions?
I’m still not getting asked permissions when running my Unity projects, so Unity just hangs and a have to force quit.

Also where is the window showing Unity Hub is the Parent Process you have a screenshot of?

1 Like

Not that I know of, but: You may have accidentally caused a permission to get declined, in which case it won’t ask again and will result in Unity just hanging like you describe.

Review your permissions under macOS “System Preferences > Security & Privacy > Privacy” and enable any for Unity Hub that are disabled:
5053610--495884--upload_2019-10-10_14-20-0.png

It’s called “Activity Monitor” – press the ( i ) button to get that dialog for your selected process.
5053610--495893--upload_2019-10-10_14-25-13.png

I am having the same problem. Unity Hub is not asking for microphone permissions, nor is the Unity editor, despite the fact that I am using the microphone in an app. Unity and Unity Hub do not appear in the “System Preferences > Security & Privacy > Privacy” dialog, so there is no way to fix this. Do I have to re-install Unity from scratch? Any workaround?

@TimeWalk-org Yuck, I’m out of ideas. What macOS version are you running? Also: definitely, definitely file a bug report through the Unity Hub “Report a bug” tool, found under your account dropdown menu in the upper right.

@Charles_Beauchemin Any chance the “not asking for mic permissions on macOS” is a known bug?

Unity Hub just tried to access my Downloads & Desktop, that was concerning.

but turns out it was because I dropped in a blender file, it opens blender, which then tries to access my desktop+downloads (I never opened it before).

… just in case this freaks someone else out in the future :slight_smile:

My setup and chronology of events:

  • New Mac (no projects on machine).
  • Fresh download of Unity Hub.
  • Installed Unity Hub.
  • Logged into Unity Hub (no projects added yet, ‘Projects’ screen shows ‘No projects yet’).
  • Installed ‘Unity Editor 2022.3.10f1’ and ‘iOS support package’ through Unity Hub.
  • After the above install completed, Unity Hub automatically asks for permissions to access:
    Desktop, Downloads, Photos.

The above leads me to believe that the permission requests are not project-specific, in fact that they are not tied to a project at all.

UPDATE:
I blocked all 3 requests and was still able to publish a game for iOS, so those permissions were certainly not necessary, at least in my case. Unity didn’t freeze at all, for me. The game doesn’t use any special features, except: In-App Purchasing, Unity Ads.