using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; public class TestTracking : MonoBehaviour { public TMP_Text text; public Transform obj; private void Start() { text.text = obj.position.ToString(); } public void OnEnter( Transform TagObj) { text.text = TagObj.position.ToString(); } public void OnExit(Transform TagObj) { text.text = TagObj.position.ToString(); } }