Unity GPS problems
estams developing an AR program, which uses the GPS data via unity, but unfortunately these data are not being updated. Following the Unity manual I start location this way:
void Start () {
Input.location.Start (5.5);
}
And when I try to make a debug screen showing in the following message:
protected void OnGUI () {
guiStyle.fontSize = 35;
GUILayout.Label ( "input.location.lastData:" + "lat" + Input.location.lastData.latitude + "Lon" + Input.location.lastData.longitude + "alt" + Input.location.lastData.altitude, GUIStyle); GUILayout.Label ( "input.location.status:" + Input.location.status, GUIStyle); GUILayout.Label ( "input.location.horizontalAccuracy:" + Input.location.lastData.horizontalAccuracy, GUIStyle); GUILayout.Label ( "input.location.verticalAccuracy:" + Input.location.lastData.verticalAccuracy, GUIStyle);
}
However, we did not make the data update, although the connection status remains in running the data does not change. I wonder if there is something wrong with the way I'm doing, and someone found a solution or have a suggestion. Thank you very much!