using Obvious.Soap; using TMPro; using UnityEngine; public class UI_PlayerPositionText : MonoBehaviour { [SerializeField] private GameObjectVariable playerGameObject; private TextMeshProUGUI textMesh; private void Awake() { textMesh = GetComponent(); } private void Update() { textMesh.text = playerGameObject.Value.transform.position.ToString(); } }