- Home /
Question by
oliver-jones · Sep 25, 2013 at 10:12 AM ·
locationmember
Android - 'Longitude not member of LocationService'
Hello,
I'm trying to get the location service within Unity. I've literally copied this out of the reference:
http://docs.unity3d.com/Documentation/ScriptReference/LocationService.Start.html
And I get this error: Longitude is not a member of UnityEngine.LocationService.
What am I doing wrong here?
Thanks
Comment
Best Answer
Answer by Graham-Dunnett · Sep 25, 2013 at 11:29 AM
I think the example needs a lastData
in there.
Input.location.lastData.longitude + " " +
etc