using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.XR.Interaction.Toolkit; public class XR_RaySwitch : MonoBehaviour { // Start is called before the first frame update public void CloseXR_Ray() { gameObject.GetComponent().enabled = false; } }