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); } }
internal static void RefreshScrollPosition() { GUI.ScrollViewState topScrollView = GUI.GetTopScrollView(); Rect position; if (topScrollView != null && EditorGUIUtility.Internal_GetKeyboardRect(GUIUtility.keyboardControl, out position)) { topScrollView.ScrollTo(position); } }