What problem does it solve?
Developers need a simple way to add 2D screen‑space overlays such as HUDs, menus, dialogs, and input forms to Decentraland scenes without dealing with low‑level rendering details.
Core Features & Use Cases
- React‑ECS UI Renderer: Initialize a UI root with
ReactEcsRenderer.setUiRenderer and define virtual screen dimensions for responsive scaling.
- Core Components:
UiEntity, Label, Button, Input, and Dropdown with extensive layout, styling, and event options.
- State Management: Use module‑level variables to update UI elements (e.g., scores, health bars) in real time.
- Multiple Renderers: Add independent UI modules via
addUiRenderer and remove them with removeUiRenderer.
- Responsive Design: Virtual screen size and
UiCanvasInformation ensure UI adapts to different devices and resolutions.
Quick Start
Add a call to setupUi() in your scene's main function to display the UI.