Hi, I'm trying to read the location of my device in Unity. Maybe I'm doing something worng but I couldn't find any Example how to do it the right way.
var textObject : GameObject;
var loc = new LocationInfo();
function Update () {
textObject.guiText.text = "Latitude: " + loc.latitude ;
}
In this case I'm just trying to print the latitude to a GUIText object but it always gives me zero. I would really appreciate any help!