Files
XMen/Assets/Scripts/XR_RaySwitch.cs
2025-07-10 14:49:53 +08:00

14 lines
328 B
C#

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<XRRayInteractor>().enabled = false;
}
}