/// <summary> /// The entire window bounds of the Unity Editor application. /// </summary> public static Rect HostViewPosition(EditorWindow window) { var hostView = HUMEditorTypes.Get().Window(window).HostView(); return((Rect)hostView.GetType().GetProperty("position").GetValue(hostView)); }
/// <summary> /// The rect position of the Unity editor debug / status bar. /// </summary> public static Rect StatusBarPosition() { var statusBar = HUMEditorTypes.Get().Main().StatusBar(); return((Rect)statusBar.GetType().GetProperty("position").GetValue(statusBar)); }
/// <summary> /// The rect position of the Unity editor dock area. The dock area is where all the windows are docked. The center area. /// </summary> public static Rect DockAreaPosition() { var dockArea = HUMEditorTypes.Get().Main().DockArea(); return((Rect)dockArea.GetType().GetProperty("position").GetValue(dockArea)); }
/// <summary> /// The rect position of the Unity editor toolbar. /// </summary> public static Rect ToolbarPosition() { var toolbar = HUMEditorTypes.Get().Main().Toolbar(); return((Rect)toolbar.GetType().GetProperty("position").GetValue(toolbar)); }