MinMapPos.cs 342 B

1234567891011121314
  1. using UnityEngine;
  2. public class MinMapPos : MonoBehaviour
  3. {
  4. [SerializeField] private GameObject MinMapCanvas;
  5. void Awake()
  6. {
  7. MinMapCanvas = GameObject.Find("MinMapCanvas");
  8. if (MinMapCanvas != null)
  9. {
  10. MinMapCanvas.transform.parent = OpenXRCamera.Instance.head;
  11. }
  12. }
  13. }