protected virtual void ConfigureInteractorUIRay() { //Configure the UI ray CheckInputAction(_interactorUIRay, ActionType.UI, "Use"); QuickXRRayInteractor ray = _interactorUIRay.GetComponent <QuickXRRayInteractor>(); ray._interactionType = InteractorType.UI; ray.enableUIInteraction = true; }
protected virtual void ConfigureInteractorTeleportRay() { //Configure the teleport ray CheckInputAction(_interactorTeleportRay, ActionType.Select, "Teleport"); CheckInputAction(_interactorTeleportRay, ActionType.Haptic, "Haptic Device"); QuickXRRayInteractor ray = _interactorTeleportRay.GetComponent <QuickXRRayInteractor>(); ray._interactionType = InteractorType.Teleport; ray.enableUIInteraction = false; }
protected virtual void ConfigureInteractorGrabRay() { //Configure the grab ray CheckInputAction(_interactorGrabRay, ActionType.Select, "Grab"); CheckInputAction(_interactorGrabRay, ActionType.Activate, "Use"); CheckInputAction(_interactorGrabRay, ActionType.Haptic, "Haptic Device"); QuickXRRayInteractor ray = _interactorGrabRay.GetComponent <QuickXRRayInteractor>(); ray._interactionType = InteractorType.Grab; ray.enableUIInteraction = false; }