Design Elements is the shared company design system used across SkyReal products. Its purpose is to ensure that every interface follows the SkyReal visual identity and provides a consistent user experience throughout the product ecosystem.
The SkrDesignElements plugin contains reusable UI components that replace or extend standard Unreal Engine controls. Extension developers should use these components whenever possible instead of creating or styling equivalent controls from scratch.
Why Use Design Elements?
Using the shared design system provides:
-
A consistent visual style across SkyReal products and extensions
-
Familiar interactions and behaviors for users
-
Faster interface development through reusable components
-
Centralized maintenance and visual updates
-
Better consistency between VR and desktop interfaces
Available Components
The plugin provides common UI building blocks, including:
-
Buttons
-
Editable text boxes
-
Toggles
-
Combo boxes
-
Steppers
-
Color boxes and color pickers
-
Popups
-
Widget lists
-
Tree views
-
Base classes for SkyReal user widgets
Components expose configurable properties and Blueprint events so they can be adapted to the needs of an extension while preserving the SkyReal visual style.
Using Design Elements in an Extension
When creating a Widget Blueprint:
-
Look for an existing SkyReal component before using a standard Unreal widget.
-
Add the Design Element to your widget.
-
Configure its exposed properties in the Details panel.
-
Bind its Blueprint events to your interface logic.
-
Use the SkyReal icons and existing layout conventions where applicable.
If no suitable Design Element exists, a standard Unreal widget can be used, but it should be styled to remain consistent with the rest of the SkyReal interface.
SkrUserWidget
SkrUserWidget is a class inheriting from UserWidget that adds some automatic behavior.
-
RefreshUI can be overridden and is called on Construct.
-
View model: the class has a getter and a setter for a view model. The view model is automatically bound to RefreshUI through the OnViewModelChanged event. And is used to implement logics that can be used in multiple UI
-
RequestRefreshUI: to refresh the UI manually, call RequestRefreshUI instead of RefreshUI. It skips the refresh if the widget hasn’t been constructed yet or if refreshing was explicitly deactivated.
-
Input handling: three booleans control whether OnMouseButtonDoubleClick, OnMouseButtonClick and OnMouseWheel are marked as handled. This stops clicks on the widget from also triggering navigation.
-
Related object: used in lists to attach the UI to the object it represents.
Use SkrAddToViewPort to add UI on the screen to handle ZOrder like Skyreal