Exemplo n.º 1
0
        public static void HideTextHint(Hand hand, EVRButtonId button)
        {
            ControllerButtonHints controllerButtonHints = ControllerButtonHints.GetControllerButtonHints(hand);

            if (controllerButtonHints != null)
            {
                controllerButtonHints.HideText(button);
            }
        }
Exemplo n.º 2
0
        //-------------------------------------------------
        public static void HideTextHint(Hand hand, ISteamVR_Action_In_Source action)
        {
            ControllerButtonHints hints = GetControllerButtonHints(hand);

            if (hints != null)
            {
                hints.HideText(action);
            }
        }
Exemplo n.º 3
0
        //-------------------------------------------------
        public static void HideTextHint(BNG.Grabber hand, ISteamVR_Action_In_Source action)
        {
            ControllerButtonHints hints = GetControllerButtonHints(hand);

            if (hints != null)
            {
                hints.HideText(action);

                //if (hand != null)
                //{
                //    if (hints.autoSetWithControllerRangeOfMotion)
                //        hand.ResetTemporarySkeletonRangeOfMotion();
                //}
            }
        }
        //-------------------------------------------------
        public static void HideTextHint(Hand hand, ISteamVR_Action_In_Source action)
        {
            ControllerButtonHints hints = GetControllerButtonHints(hand);

            if (hints != null)
            {
                hints.HideText(action);
                if (hand != null)
                {
                    hand.hintsActive--;
                    if (hand.hintsActive == 0)
                    {
                        if (!hand.isControllerActive)
                        {
                            hand.ResetTemporarySkeletonRangeOfMotion();
                        }
                        hints.renderModel.gameObject.SetActive(false);
                    }
                }
            }
        }