Description
The Editor.WindowFlags.Customized
field is a member of the Editor.WindowFlags
enumeration. This enumeration is used to specify various window configuration options within the editor environment. The Customized
flag indicates that a window has been customized beyond the default settings provided by the editor.
This flag can be combined with other flags in the WindowFlags
enumeration to create a specific window configuration. The System.FlagsAttribute
applied to the enumeration allows for bitwise operations, enabling multiple flags to be set simultaneously.
Usage
To use the Editor.WindowFlags.Customized
flag, you can combine it with other flags from the WindowFlags
enumeration using bitwise operations. This allows you to define a window with specific characteristics, including customizations.
For example, you might want to create a window that is both a dialog and customized. You can achieve this by combining the Dialog
and Customized
flags:
Editor.WindowFlags windowFlags = Editor.WindowFlags.Dialog | Editor.WindowFlags.Customized;
Example
// Example of using Editor.WindowFlags.Customized
Editor.WindowFlags windowFlags = Editor.WindowFlags.Dialog | Editor.WindowFlags.Customized;
// Check if the Customized flag is set
bool isCustomized = (windowFlags & Editor.WindowFlags.Customized) == Editor.WindowFlags.Customized;
// Output the result
if (isCustomized)
{
// Perform actions for customized windows
}