public static void ScrollToVertical(int offset) { if (!IsOpen) { return; } var treeViewInstance = TimelineWindow.GetTreeView(TimelineWindow.Instance); var scrollPosition = TreeView.GetScrollPosition(treeViewInstance); scrollPosition.y -= offset; TreeView.SetScrollPosition(treeViewInstance, scrollPosition); TimelineEditor.Refresh(RefreshReason.WindowNeedsRedraw); }