2011-11-09 59 views

回答

0

按本blog post你必須使用相同的API:iPhoneSettings.StartLocationServiceUpdates()

+0

謝謝!你不覺得有可能從Unity調用java活動嗎? – HiddenDev

2

您可以訪問GPS數據,unity3d Android設備以下列方式:

Input.location.Start(); //start gps 
// any method/member you need from Input.location like timestamp or any positional variables. 
Input.location.Stop(); //stop gps (good for battery economy) 

你可以參考這裏瞭解更多info: http://docs.unity3d.com/ScriptReference/LocationService.html