14 lines
328 B
C#
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;
|
|
}
|
|
}
|