02-25-2019 11:36 PM
void Update()
{
if (disableControllerLaserPointer == true)
{
activeController = OVRInput.Controller.None;
Ray selectionRay = OVRInputHelpers.GetSelectionRay(activeController, trackingSpace);
SetPointerVisibility();
SetPointer(selectionRay);
}
else if (disableControllerLaserPointer == false)
{
activeController = OVRInputHelpers.GetControllerForButton(OVRInput.Button.PrimaryIndexTrigger, activeController);
Ray selectionRay = OVRInputHelpers.GetSelectionRay(activeController, trackingSpace);
SetPointerVisibility();
SetPointer(selectionRay);
}
}