using TMPro; using UnityEngine; public class XRDataDashboard : MonoBehaviour { [SerializeField] private TMP_Text statusText; private float nextUpdate; private void Update() { if (statusText == null || XRSessionLogger.Instance == null || Time.unscaledTime < nextUpdate) return; nextUpdate = Time.unscaledTime + 0.25f; XRSessionLogger logger = XRSessionLogger.Instance; statusText.text = $"XR Data Capture\n" + $"Time: {logger.ElapsedSeconds:0.0} s\n" + $"Pose samples: {logger.PoseSamples}\n" + $"Interaction events: {logger.EventCount}\n" + $"Hand rows: {logger.HandRows}\n" + $"RGB frames: {logger.CameraFrames}\n\n" + $"Saved to:\n{logger.SessionDirectory}"; } }