WindowFlags WindowDoesNotAcceptFocus

robot_2Generated
code_blocksInput

Description

The WindowDoesNotAcceptFocus field is a member of the Editor.WindowFlags enumeration. This flag indicates that a window should not accept focus. When this flag is set, the window will not receive input focus, meaning it will not become the active window when clicked or interacted with.

Usage

Use the WindowDoesNotAcceptFocus flag when you want to create a window that should not interrupt the user's current focus. This is particularly useful for tool windows or informational displays that should not take focus away from the main application window.

To apply this flag, combine it with other WindowFlags using a bitwise OR operation:

Example

// Example of using WindowDoesNotAcceptFocus
var windowFlags = Editor.WindowFlags.Window | Editor.WindowFlags.WindowDoesNotAcceptFocus;

// Create a window with the specified flags
var window = new EditorWindow(windowFlags);
window.Show();