-
- Notifications
You must be signed in to change notification settings - Fork 0
Imagment edited this page Mar 27, 2025 · 3 revisions
The UI class is a component that marks an object as a UI element. If an object is marked as a UI, it will be treated separately from regular game objects, ensuring it renders and updates in a way suited for user interfaces.
| Constructor | Description |
|---|---|
UI() | Default constructor that initializes the UI component. |
UI(const UI& other) | Copy constructor that duplicates an existing UI component. |
| Function | Description |
|---|---|
std::shared_ptr<Component> Clone() const override | Creates a deep copy of the UI component and returns it as a std::shared_ptr<Component>. |
UI& operator=(const UI& other) | Copy assignment operator that assigns one UI component to another. |