Search Unity

Unity Hub would like to access your Photos

Discussion in 'Unity Hub' started by HonorableDaniel, Jan 4, 2019.

  1. HonorableDaniel

    HonorableDaniel

    Joined:
    Feb 28, 2007
    Posts:
    2,874
    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 Screen Shot 2019-01-03 at 6.25.16 PM.png
     
  2. APSchmidt

    APSchmidt

    Joined:
    Aug 8, 2016
    Posts:
    3,160
    Did you check your computer for viruses?

    Do you use packages that need to access your photos?
     
    Last edited: Jan 4, 2019
  3. HonorableDaniel

    HonorableDaniel

    Joined:
    Feb 28, 2007
    Posts:
    2,874
    No.

    No

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

    Ethan_VisualVocal

    Joined:
    Mar 23, 2016
    Posts:
    161
    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:
    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.
     
    system-idle and HonorableDaniel like this.
  5. HonorableDaniel

    HonorableDaniel

    Joined:
    Feb 28, 2007
    Posts:
    2,874
    I didn't know there was such a thing as Parent Process. Thanks for the info @Ethan_VisualVocal.
     
  6. Ethan_VisualVocal

    Ethan_VisualVocal

    Joined:
    Mar 23, 2016
    Posts:
    161
    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:
    • <Link to Critical Known Issues> (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.)
     
    Charles_Beauchemin likes this.
  7. Charles_Beauchemin

    Charles_Beauchemin

    Unity Technologies

    Joined:
    Jan 18, 2017
    Posts:
    370
    very good idea! we'll do this.
     
    Ethan_VisualVocal likes this.
  8. system-idle

    system-idle

    Joined:
    Dec 13, 2013
    Posts:
    20
    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!
     
    Ethan_VisualVocal likes this.
  9. system-idle

    system-idle

    Joined:
    Dec 13, 2013
    Posts:
    20
    Hey @Ethan_VisualVocal 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?
     
    TimeWalk-org likes this.
  10. Ethan_VisualVocal

    Ethan_VisualVocal

    Joined:
    Mar 23, 2016
    Posts:
    161
    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:
    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.
    upload_2019-10-10_14-25-13.png
     
  11. TimeWalk-org

    TimeWalk-org

    Joined:
    Nov 3, 2014
    Posts:
    25
    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?
     
  12. Ethan_VisualVocal

    Ethan_VisualVocal

    Joined:
    Mar 23, 2016
    Posts:
    161
    @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?