I am working on a Unity3d for Android project. Using the documentation from Unity:
http://unity3d.com/support/documentation/ScriptReference/Input-location.html
I should be able to use Input.location to get access to GPS location data. But instead I get an error basically telling me the Input.location is not part of Unity.
Assets/Scripts/Prototype1.js(27,29): BCE0019: ‘location’ is not a
member of ‘UnityEngine.Input’.
I’ve checked for updates and it tells me the system is fully up to date. I’m running version 3.4.2f3
Is the documentation outdated? Is there a different reference to the LocationService? How can I get the location data?
I found documentation to the old code, based in iPhoneSettings. This is the code I’m using now, it’s not complete (doesn’t respond to time out of the location service and other such well rounded behavior), but demonstrates the code.