1234567891011121314151617181920212223242526 |
- using System.Collections;
- using System.Collections.Generic;
- using TMPro;
- using UnityEngine;
- public class ViveDebugData : MonoBehaviour
- {
- public FrontWheelTracker tracker;
- public TextMeshProUGUI posText;
- public TextMeshProUGUI rotText;
- // Start is called before the first frame update
- void Start()
- {
-
- }
- // Update is called once per frame
- void Update()
- {
- posText.text = $"Pos: {tracker.Position.ToString()}";
- rotText.text = $"Rot: {tracker.Rotation.ToString()}";
- }
- }
|