private void ToggleLineVisual(XRController controller, bool value) { controller.GetComponentInParent <XRRayInteractor>().enabled = value; controller.GetComponentInParent <XRInteractorLineVisual>().enabled = value; }