# ExistentUMGWindowComponent

## Overview

The ExistentUMGWindowComponent is a component designed to create and manage UMG (Unreal Motion Graphics) widgets as separate OS-level windows (2D). This component facilitates the display of complex UI elements, such as inspection panels or control interfaces, in standalone windows outside the main game viewport.&#x20;

**Key Features**

* Standalone Window Creation: Allows UMG widgets to be opened in new, separate OS-level windows, enabling multi-window user interfaces within Unreal Engine applications.
* Customizable Window Properties: Supports customization of the window's appearance and behavior, including position, size, title bar presence, OS-native border usage, and draggability.
* Flexible UI Management: Provides functionalities to dynamically add or remove UI elements based on game state or user interaction, enhancing the adaptability of the UI.

## How to use

* Initialization: Add the ExistentUMGWindowComponent to an actor in your scene, typically an actor related to UI management or the player character.
* Widget Creation: Design your UMG widget in the Unreal Engine Editor, incorporating the desired UI elements and functionalities.
* Open Window: Use the OpenAsWindow function to create a new window containing your widget. Customize the window's properties as needed.
* Interaction Handling: Implement interaction logic within your widget, responding to user actions and updating the UI accordingly.
* Window Closure: Optionally, handle the window's closure through the CloseWindow function or by responding to the WindowCloseCallback delegate.

<figure><img src="https://lh7-us.googleusercontent.com/3fcNYtlirD_S5e0gprIu-1YQB5SNYwDOazUg7l0OX2p6LGWEilt5vb8FC_TkiSDcXmJVxg93lNLsXGHSxKHJBBM0zx2vr1EAMhJjIhYzfDnZdVOcI4ePX-QijVugiotvY2QisfiBM8lZZSQuihZuFQ" alt=""><figcaption></figcaption></figure>

## Additional Details


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.existent.com/documentation/v0.0.1/resources/classes-components/existentumgwindowcomponent.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
