1
0
mirror of https://projects.caleb-brown.dev/UDRI-XRT/UDRIGEEKCup2024.git synced 2025-01-22 15:18:25 -05:00
UDRIGEEKCup2024/Assets/Scripts/TransformTracker.cs

28 lines
556 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
namespace MAVRIC.GEEKCup
{
public class TransformTracker : MonoBehaviour
{
public Transform target;
public TMP_Text output;
private void Awake()
{
if (target == null)
{
target = transform;
}
}
private void Update()
{
output.text = JsonUtility.ToJson(target.position, true);
}
}
}