Skip to content
Imagment edited this page Mar 27, 2025 · 3 revisions

Explanation

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.

Constructors

Constructor Description
UI() Default constructor that initializes the UI component.
UI(const UI& other) Copy constructor that duplicates an existing UI component.

Functions

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.

Overview

Cheatsheets

Structure of the engine

Silver Mathematics

Components

Clone this wiki locally