Documentation Home
v1.22 v1.23
v1.22 v1.23

Desktop navigation toolbar

The desktop navigation toolbar can be extended with custom Blueprint widgets. Each extension is registered through an auto-spawnable widget description and is added to the toolbar when SkyReal builds the desktop interface.

Use this extension point for compact controls that must remain easily accessible while working in desktop mode, such as buttons, toggles or drop-down menus.

Creating a Toolbar Widget

  1. In your extension plugin, create a Widget Blueprint.

  2. Select WBP_NavBarHeader as its parent class.

  3. Build the visible part of the toolbar entry inside the inherited Named Slot.

  4. Use components from SkrDesignElements whenever possible to keep the interface consistent with the rest of SkyReal.

  5. Implement the widget behavior in Blueprint and save it.

The toolbar has limited space. Keep the visible content compact and move complex controls into a drop-down menu or another dedicated panel.

Adding a Drop-Down Menu

WBP_NavBarHeader already provides the standard open and close behavior for a toolbar menu.

To provide custom menu content:

  1. Create a second Widget Blueprint containing the menu interface. A base clas named WBP_NavBarBody exist for default visual.

  2. In the NavBarHeader, set the default value of User Menu Content with your body widget.

The parent widget handles displaying and closing the returned menu content.

Registering the Widget

  1. In the extension's RegistrableAssets directory, create a Data Asset that inherits from SkrAutoSpawnableUserWidgetDescription.

  2. Set Widget Class to the toolbar Widget Blueprint.

  3. Set Spawning Context to exactly NavigationBar.

  4. Set Priority to control the widget's position in the toolbar.

  5. Save the Data Asset.

Because the description is stored in RegistrableAssets, it is automatically registered when the extension is loaded. SkyReal collects all descriptions using the NavigationBar context, creates their widgets and adds them to the desktop navigation toolbar.

Ordering: Toolbar entries are sorted by ascending priority. A lower Priority value is added before a higher value.

Z Order Category and Custom Z Order are used when widgets are added directly to the viewport. They do not control the order of entries inside the navigation toolbar.

Using Icons

Toolbar icons should come from the SkyReal icon library whenever possible.

Icons are not discovered automatically. If the toolbar uses a custom texture, add it to a registered SkrIconsLibrary Data Asset in the extension. Referencing the texture from the widget alone does not register it.

Common Issues

The widget does not appear

  • Check that the description Data Asset is inside RegistrableAssets.

  • Check that Widget Class references the correct Widget Blueprint.

  • Check that Spawning Context is exactly NavigationBar.

  • Make sure the extension is present in SkrExtensions.json and is loaded successfully.

The widget appears in the wrong position

  • Check the Priority value in its description.

  • Remember that lower values are added first.

  • Compare the priority with the other toolbar extensions loaded in the session.

The drop-down menu does not open

  • Check that the toolbar widget inherits from WBP_NavBarHeader.

  • Check that UserMenuContent is set to a valid widget class.

  • Keep the menu content in a separate Widget Blueprint.

An icon is missing at runtime

  • Register the texture in an SkrIconsLibrary.

  • Make sure the texture belongs to the extension or one of its declared extension dependencies.

  • References to Engine assets or Unreal plugin assets that are not packaged as SkyReal extensions are not guaranteed to be available at runtime.