Hi All,
How to access the GPS coordinates in unity3d for Android application.
Please guide me in steps to know about GPS coordinates.
Thank you in Advance…
Hi All,
How to access the GPS coordinates in unity3d for Android application.
Please guide me in steps to know about GPS coordinates.
Thank you in Advance…
step 1. look here:
http://docs.unity3d.com/Documentation/ScriptReference/LocationInfo.html
http://docs.unity3d.com/Documentation/ScriptReference/LocationService.html
Well, that about covers it
Seriously though, you need to start it through input, with the line:
Input.location.Start();
here’s the Script Example:
http://docs.unity3d.com/Documentation/ScriptReference/LocationService.Start.html
http://docs.unity3d.com/Documentation/ScriptReference/Input-location.html?from=LocationService
Here is an example: Unity - Scripting API: LocationService.Start
Just make sure you have checked “Input.location.isEnabledByUser”, “Input.location.Start();” and “Input.location.status” like in the example above.
In addition if you want to make conversions you can start here:
Make sure that you update player settings to allow ‘Promotion support’ and add text to ‘Location Usage Description’
Thanks,
E,Make sure in player settings you check ‘Promotion support’ and add some text to ‘Location Usage Description’
E