SetBtnPos.cs 266 B

12345678910111213
  1. using UnityEngine;
  2. public class SetBtnPos : MonoBehaviour
  3. {
  4. [SerializeField] private GameObject SetBtn;
  5. void Start()
  6. {
  7. if (SetBtn != null)
  8. {
  9. SetBtn.transform.parent = OpenXRCamera.Instance.head;
  10. }
  11. }
  12. }