EditorUIMove.cs 379 B

123456789101112131415
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class EditorUIMove : MonoBehaviour
  5. {
  6. // Update is called once per frame
  7. void Update()
  8. {
  9. transform.position =OpenXRCamera.Instance.head.transform.position;
  10. // transform.eulerAngles = new Vector3(0,OpenXRCamera.Instance.head.transform.eulerAngles.y, 0);
  11. }
  12. }