Widgets & 2D
Overview
Sceneri’s 2D components are essential for creating user interfaces, HUDs (heads-up displays), and visual feedback for players. These components allow developers to design interactive elements like buttons, health bars, notifications, and textual information, which can overlay or supplement the 3D game environment. Two of the primary 2D components in Sceneri are Widgets and Text Components. This article provides a comprehensive look at these components, explaining their properties, use cases, and examples of how they can be configured to create responsive and engaging 2D interfaces.
Components
-
Text
Displays customizable, real-time text on the screen, ideal for showing information like scores, dialogue, and instructions within the game interface.
-
Widget
Provides a flexible 2D interface element used for creating interactive UI components like buttons, sliders, and icons, enabling player interaction and visual feedback within the game.
Integrating Widgets and Text
Combining Widgets and Text Components allows for a cohesive and interactive interface. Here are a few ways to integrate them:
- HUD Displays: Use widgets as background elements for health, stamina, or ammo bars, with text components overlaid to show numeric values. This setup helps players easily monitor vital stats during gameplay.
- Menus and Buttons: Create in-game menus by combining clickable widgets (e.g., buttons) with text labels. Text components can provide descriptions or labels for each button, guiding players through options like inventory or settings.
- Notifications and Alerts: Use text components for alerts or objective updates and pair them with widgets that include icons or background images. For instance, when a new quest is added, a widget with a quest icon and a text component displaying quest details can appear briefly on the screen.
Summary
Sceneri’s Widgets and Text Components provide developers with versatile tools for creating polished, functional, and visually appealing 2D interfaces. By combining these components, you can design custom HUDs, interactive menus, notifications, and more, tailored to enhance the player experience. Utilizing animations, dynamic content, and layering, Sceneri’s 2D components make it easy to build responsive, immersive interfaces that keep players informed and engaged.
Feedback
Please be sure to submit issues or feature requests through the embedded feedback form. In the event it is a major issue please contact us directly through Discord.