示例#1
0
            /// <summary>
            /// True if the interactor is either touching or grabbing an interactable.
            /// </summary>
            /// <returns></returns>
            public bool IsInteractorInteracting()
            {
                if (interactor == null)
                {
                    return(false);
                }

                List <XRBaseInteractable> hoverTargets = new List <XRBaseInteractable>();

                interactor.GetHoverTargets(hoverTargets);

                return(hoverTargets.Any() || interactor.selectTarget != null);
            }