Exemple #1
0
        /// <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));
        }
Exemple #2
0
        /// <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));
        }
Exemple #3
0
        /// <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));
        }
Exemple #4
0
        /// <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));
        }