ProtectedconstructorOptionalisInternalConstructor: booleanProtected_Protected_Whether a resource has actually been picked.
Protected_The picked resource. Null may indicate that the resource was intentionally unloaded.
Protected_Protected_The resource picker UI.
StaticlastThe last position of the resource picker. If set, it will be reused when the picker is spawned.
Protected Static ReadonlypreviousStatic ReadonlywindowThe default window content padding to be used for drop down windows.
Static ReadonlywindowThe default window padding to be used for drop down windows.
Sets the height of the window in points.
Sets the height of the window in pixels.
Check whether the window was destroyed.
Checks whether the window currently has keyboard focus.
Gets the key window which owns this window.
Returns the X position of the window in screen coordinates in points.
Specifies the local shortcut context. This context will be automatically disabled whenever the user switches focus from the context.
Gets the parent EditorWindow.
Gets the RenderWindow associated with this EditorWindow.
Specifies the global shortcut context. This context will be always enabled as long as the window is active.
Determines the size of the keu window.
Sets the stylesheet for this window's UI surface.
Sets the stylesheet for this window's UI surface.
Returns the X position of the window in screen coordinates in points.
Sets the width of the window in points.
Sets the width of the window in pixels.
Centers the window within it's parent window.
Closes and destroys the window.
Determines if the window is visible.
Closes the window.
Virtual
Called whenever the user or the program requested to close the window.
ProtectedonVirtual
Method to override to implement destruction of custom windows. Called by the engine before the window is destroyed.
ProtectedonVirtual
Method to override to implement custom behavior of a window, called by the engine once per frame.
ProtectedonVirtual
Method to override to implement custom behavior of a window, called by the engine once per frame,
once all the windows had their onEditorUpdate() method called.
Virtual
Method to override to implement initialization of custom windows. Called by the engine after window creation.
Virtual
Triggered whenever the window's screen dpi changes.
Virtual
Triggered whenever the window gains or loses focus.
True if focus was gained, false otherwise.
Virtual
Triggered whenever the window size changes.
New width of the window in pixels.
New height of the window in pixels.
Defines the window maximum width and height in points.
Defines the window minimum width and height in points.
The minimum width of the window in points.
The minimum height of the window in points.
Moves the window on the desktop. Coordinates are in screen space using points.
Moves the window on the desktop. Coordinates are in screen space using pixels.
Resizes the window using a width and height in points.
Resizes the window using a width and height in pixels.
Temporary workaround for ScriptDropDownWindow script interface generation that causes compilation issues due to missing methods.
StaticconstructOpens a DropDownWindow of the specified type.
The type of the DropDownWindow to open.
The parent key window, if null, will use the current.
The window options.
The optional element to anchor the drop down window.
The optional anchor position. If anchorElement is not null, the value is relative to it, otherwise absolute.
OptionalparentWindow: EditorWindow
Optional. A custom parent window of the drop down. Will use the parent from the anchor if null.
OptionalwindowOptions: any
Optional. The window options that will be passed to onInitialize.
The newly constructed DropDownWindow.
Protected StaticconstructConstructs the DropDownWindow from script.
StaticopenOpens the resource picker callout window anchored to the given anchor. If the window was previously opened in this session, the previous position will be used.
The parent KeyWindow
The element to act as an anchor to the callout window.
A callback to be called once the user picks a resource on the picker.
OptionalfilterType: Type
The type of resource to be filtered.
OptionalresourceFilterCallback: (entry: ResourceEntry) => booleanThe newly created resource picker window.
The ResourcePickerWindow class implements a window that enables the user to pick a Resource from the ProjectLibrary. The shown types can be filtered by specifiying a
filterType.