Skip to content

Instantly share code, notes, and snippets.

@flushpot1125
Last active June 23, 2024 11:10
Show Gist options
  • Save flushpot1125/606a5ead130325e25fb970e75b52e525 to your computer and use it in GitHub Desktop.
Save flushpot1125/606a5ead130325e25fb970e75b52e525 to your computer and use it in GitHub Desktop.
//based on "https://qiita.com/lycoris102/items/35e338b32105879e0ab9"
using UnityEngine;
using UnityEngine.UI;
using TMPro;
public class LocationRenderer : MonoBehaviour
{
public LocationUpdater updater;
public TMPro.TMP_Text text;
void Update()
{
text.text = updater.Status.ToString()
+ "\n" + "lat:" + updater.Location.latitude.ToString()
+ "\n" + "lng:" + updater.Location.longitude.ToString();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment