示例#1
0
        internal static void ScrollForTabbing(bool forward)
        {
            GUI.ScrollViewState topScrollView = GUI.GetTopScrollView();
            Rect position;

            if (topScrollView != null && EditorGUIUtility.Internal_GetKeyboardRect(EditorGUIUtility.Internal_GetNextKeyboardControlID(forward), out position))
            {
                topScrollView.ScrollTo(position);
            }
        }
示例#2
0
        internal static void RefreshScrollPosition()
        {
            GUI.ScrollViewState topScrollView = GUI.GetTopScrollView();
            Rect position;

            if (topScrollView != null && EditorGUIUtility.Internal_GetKeyboardRect(GUIUtility.keyboardControl, out position))
            {
                topScrollView.ScrollTo(position);
            }
        }