Skip to content

Display Feature

Bogdan T edited this page Jan 28, 2024 · 17 revisions

Basics

Here you will learn how the display feature is organized

Structure

The DisplayRenderer is on the top of the hirarchy. It manages the rendering of a DisplayCanvas attached to the renderer.

Besides that, it contains the DisplayData used in canvas and the DisplayTrigger list.

and finally, it implements the InjectablePlaceholderList, so, you can inject placeholders to be used in canvas.

DisplayCanvas is the class that is also a DisplayElement and contains the list of DisplayElements. It controls how the elements are displayed.

All the display elements, triggers and actions(info about actions further) are registered in DisplayManager. This class also holds the link to the HUD canvas and all active canvases(attached to renderer). P.s. I think it will be changed from active canvases to renderers in future updates

Clone this wiki locally