Last active
June 23, 2024 11:10
-
-
Save flushpot1125/606a5ead130325e25fb970e75b52e525 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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