Search Unity

Is it possible to test the Input.location API from within the editor (Mac OS)

Discussion in 'Scripting' started by jeango, May 28, 2019.

  1. jeango

    jeango

    Joined:
    Dec 19, 2012
    Posts:
    109
    Hi,
    I'm trying to test if my GPS location is working.
    I have my location services active in the settings of my mac, however I can't find "Unity" in the listed apps that have access to the location services, so I can't specifically allow the editor to use the location services

    Is there a way to do that?
     
  2. StarManta

    StarManta

    Joined:
    Oct 23, 2006
    Posts:
    8,775
    The docs specify that Input.location is mobile devices only, so it's not going to work with your Mac's location services. However, you should be able to use Unity Remote and get the location of that device.
     
  3. jeango

    jeango

    Joined:
    Dec 19, 2012
    Posts:
    109
    Aha I missed out on that detail... will try with remote then thanks