UI Designer
The Mowo Editor window for authoring .ui game screens. Covers the canvas, hierarchy, palette, details, bindings, animations and play-in-designer.
The UI Designer is the Mowo Editor window for .ui assets, the Unreal UMG Designer's counterpart. It shows the live widget tree the runtime factory builds, so what you see on the canvas is what the game draws. This page is a tour of the window and a walkthrough for a first screen.
Layout
| Region | What it holds |
|---|---|
| Toolbar | Save, Undo, Redo, the selection breadcrumb, and the Designer, Play and Preview modes |
| Palette (left, top) | Search, Favourites, Common, Panels, More and Project Widgets |
| Hierarchy (left, bottom) | The widget tree, with visibility and lock toggles per row |
| Canvas (center) | The device frame, the live widget tree and the editing gizmos |
| Animation strip (bottom) | Timelines, tracks and keys |
| Details (right) | Widget, Slot, type properties, Bindings and Events for the selection |
Build your first screen
- Create the asset
In the Asset Browser, right-click a folder and choose More > UI Widget. The editor writes
NewWidget.uiand starts a rename. Double-click the asset to open the designer. - Add widgets
Click a palette row to add it to the selected container, or drag it onto the canvas to drop it inside the deepest container under the cursor. Right-click a palette row to add it to Favourites.
- Place them
Drag to move and use the handles to resize. Moves snap to sibling edges and centers, the parent center, the safe area and an 8-pixel grid. Hold Alt while dragging to turn snapping off.
- Bind data and wire events
In Details, bind a property such as
textto a source, and add anOnentry for events such asclicked. See Bindings. - Check it
Press Play to run bindings and animations on the canvas, switch device frames to test other resolutions, then save.
The palette
The palette opens with a search box and a Favourites section, then three widget sections:
| Section | Widgets |
|---|---|
| Common | Text, Image, Button, Progress Bar, Slider, Check Box |
| Panels | Canvas Panel, Horizontal Box, Vertical Box, Grid Panel, Overlay, Scroll Box |
| More | Video Player, Spinner, Spacer, Uniform Grid, Wrap Panel, List View, Widget Switcher, Toggle Switch, Combo Box, Editable Text, Key Capture, Rich Text, Rich Text Block, Hyperlink, Breadcrumb, Border, Size Box, Scale Box, Retainer Box, Clip Box |
| Project Widgets | Every other .ui in the project, added as a UserWidget node |
More starts closed; a search opens every section, so a match is never hidden.
The asset you are editing is left out of Project Widgets, so a screen cannot embed itself. Favourites last only for the editor session.
The canvas
- Click selects the deepest widget under the cursor. Alt+click or Ctrl+click walks one level up.
- Shift+click toggles a widget in the selection. Dragging on empty space draws a selection band.
- Drag moves the whole selection. The live position and size appear in a badge while you drag.
- Middle or right drag pans; the wheel zooms around the cursor.
Anchors
When the parent is a Canvas Panel, the selection shows UMG's anchor medallion. Drag an arm to move that anchor corner; the widget stays where it is on screen while its anchors change. Click the center of the medallion for the presets. On a stretched axis, each edge gets a handle for its inset.
Device frames
The canvas header has a device dropdown, an orientation toggle and a DPI scale. There are eleven presets:
| Class | Sizes | Safe area |
|---|---|---|
| Design | The asset's own design size | 5% |
| Phone | 1080 × 1920, 1170 × 2532, 1440 × 3120 | 5% |
| Tablet | 1620 × 2160, 2048 × 2732 | 5% |
| Desktop | 1280 × 720, 1920 × 1080, 2560 × 1440, 3840 × 2160 | 5% |
| TV | 1920 × 1080 | 10% |
The DPI scale changes the frame's pixel size without touching the asset's design size, so badly anchored widgets move and you can spot them. None of these choices are saved in the asset.
The hierarchy
One row per node, indented by depth, with a type icon and the node name.
| Control | Behavior |
|---|---|
| Arrow | Collapses or expands the subtree |
| Eye | Hides the node in the designer only (design_hidden) |
| Padlock | Locks the node against picking, moving and nudging (design_locked) |
| Double-click or F2 | Inline rename |
| Drag | Reparents or reorders the whole selection |
| Search | Filters by name and class and keeps each match's parents visible |
Hidden and locked are saved in the asset, but the runtime ignores them. The factory honors them only in designer mode FMiriGraphicsWidgetFactory.
The row context menu has Rename, Duplicate, Copy, Paste, Wrap With, Replace With, Group into Canvas Panel, Select All Children, Expand Subtree, Collapse Subtree and Delete. Wrap With puts a new container around the selection. Replace With changes a node's class and keeps its name, slot, bindings and the children the new class can hold. Copy, Cut and Wrap With are disabled on the root, and Copy on the root no longer clears the clipboard. Wrap, Group, Align, Distribute, Replace and Add Track say why they refuse when they cannot act.
Details
Details has sections for the Widget (name, variable flag), its Slot, the type's own properties, its brushes, Transitions, Bindings and Events. A search box filters rows across all sections; a brush section stays visible when a brush row such as fill, shadow or opacity matches.
- Revert arrow. A property that differs from its default shows an arrow. Clicking it removes the property from the node, so the node goes back to having no opinion.
- Multi-select. With several widgets selected, an edit goes to every selected node whose class has that property. Rows the whole selection does not share are marked.
- Slot. Under a Canvas Panel you get anchors, position, size, far offsets, size-to-content and z-order. Under a box, overlay or grid you get padding, fill weight and horizontal and vertical alignment.
- Colors. Color rows list the theme's tokens first and keep the raw picker one step further in.
Transitions
The TRANSITIONS section plays one of the screen's animations when a widget changes state. Each entry has a State (hover, pressed for a Button, or focus; a state read from a file that the list does not offer is shown as it is), an Animation picked from the asset's animations, and Reverse On Exit. A hover transition needs a named widget.
Brushes and effects
A Border, an Image and a Button read named brushes, and Details gives each brush slot its own collapsible BRUSH section under the type's properties: background for a Border, image for an Image, and normal, hovered, pressed, disabled, focused and selected for a Button. A slot you never touch writes nothing, and a slot you empty again is removed from the file, so opening and saving a screen never adds a brush block.
| Row | What it edits |
|---|---|
| Fill | A color token, a #rrggbb[aa] string or a picked color. A Button's states also have a Label Color. |
| Gradient | A switch, then linear or radial, the angle and a list of color stops. |
| Radii, Radii Token | Four corner radii, or the name of a theme radii token. |
| Border Width, Border Color | The outline. |
| Shadow 1, 2, ... | Offset, blur, spread, color, Inset and Glow (additive). Add shadow appends one. |
| Opacity, Backdrop Blur | Whole-brush opacity and the blur applied to what is behind the widget. |
| Material | A .mat asset, then one row per parameter of that material: a number for a scalar and four numbers for a vector. |
| Sprite, Image, Image Mode | A theme sprite, or an image path drawn stretched or tiled. |
| 9-Slice, Tile Size | Stretchable margins and the tile size in pixels. |
The canvas paints material brushes the way the game does, and so does Play In Editor: the editor installs the same material resolver the player uses. A material that is still compiling shows its parameter rows and its color as soon as it is ready. A material file you save, or one that was missing or broken and is now fixed, is picked up within a second without reopening the screen.
The root node's Details include a Visual Script Class picker that writes the screen's visual_script_class, the Visual Scripting controller class, and a C++ Controller Class picker that writes controller_class, a reflected actor or component class from your game module. A screen has one controller; choosing one replaces the other. See C++ controllers.
Bindings and sample values
The bind flyout lists sources in sections: Properties, Visual Script Functions, C++ Controller, Recent and Current:
- Properties: reflection paths (
Entity.Component.Property) from the scene. With no scene bound, you type the path by hand. - Visual Script Functions:
visualscript.Class.Functionentries for every pure function of the controller class that takes no parameters and returns a value. - C++ Controller:
controller.Nameentries for every bindableMPROPERTY(bool, number, text, enum) and every getterMFUNCTIONof the screen's C++ controller class. The event action menu lists the same class's zero-argument functions, so a button'sclickedaction can call one by name. - Recent and Current sources.
The flyout also edits how the value is shown and when it is read:
- Format is a text template such as
HP {Player.Health}. - Converter is one of the registered converters, or none.
- Mode is
auto,tickortwo_way.
Picking a different source for a bound property keeps its format, converter and mode. The Bindings section lists them under the source.
Each bound source has a sample value you can edit under its chip. The canvas uses it in place of live game data. Sample values are editor state and are never saved.
Play and Preview
| Mode | What runs | Leave with |
|---|---|---|
| Play | Bindings resolve against sample values, auto_play animations start, looping ones loop. Events are reported in a strip at the bottom instead of being dispatched. | Escape or the Stop button |
| Preview | The tree becomes interactive for focus and gamepad checks. Bindings and animations do not run. | Escape or Exit Preview |
Only one mode is on at a time; Designer is the editing mode.
Capture Golden
Capture Golden in the designer toolbar renders the open screen the way the game builds it, including edits you have not saved yet, and saves a PNG you can keep as a reference image for your own screen tests. The screen is built with the runtime widget builder, not in designer mode, so a widget you left hidden while authoring shows as it ships, and it is drawn at the screen's design size at scale 1, whatever the canvas zoom or device frame says.
The editor waits until the screen has settled before it captures: fonts, images and the shaders of the materials this screen uses have to be ready, and the time its materials read is held at zero, for this capture only, so an animated material always captures the same frame and the rest of the editor keeps animating. The file goes to .Mowo/Saved/Screenshots/UI/<screen name>.png in the project and a notification shows its path. If the screen does not settle within twenty seconds the capture fails and says so in the output log.
The same capture is available to scripts as ui-capture <ui> <png> (see Editor automation), which renders the saved file. Animations are not advanced, so an animated screen is captured at its first frame, and a RenderTargetImage shows its placeholder because no scene captures run in the designer.
Animations
The strip below the canvas edits the asset's timelines: one named animation per entry, one track per widget and property, and diamond keys on a ruler. You can add and remove animations, tracks and keys, set a key's time, value and easing, toggle Auto play and Loop, and scrub by clicking or dragging on the ruler. Space plays or pauses and Delete removes the selected key. The easing list comes from the runtime evaluator, so it only offers curves the game can play.
The track property list follows the selected widget. It offers the host properties (opacity, translation_x, translation_y, scale, rotation, color), then every animatable property of the widget's class (a text block adds its text color, a progress bar its percent and fill color, any widget its render translation, scale and angle), then a material.<parameter> entry for each parameter of the material a Border's brush uses; other widgets keep their own material parameters, so the entry is not offered on them. A color property gets a key with four color channels, a vector property gets vector fields, and a material parameter starts from the material's own default. A new track's first key starts from the property's default instead of zero.
Keyboard shortcuts
These work while the canvas or hierarchy has focus. They are bound to the designer's editor.miriGraphicsDesigner focus scope, so they do not leak into other panels. See focus scopes.
| Key | Action |
|---|---|
| Arrows / Shift+arrows | Nudge by 1 / 10 design pixels |
| Delete / Backspace | Delete the selection |
| Ctrl+C / Ctrl+V / Ctrl+X | Copy / paste / cut |
| Ctrl+D | Duplicate |
| Ctrl+G | Group the selection into a new Canvas Panel |
| F | Frame the selection |
| F2 | Rename |
| Ctrl+Z / Ctrl+Y | Undo / redo |
| Escape | Close a flyout, clear the selection, or leave Play/Preview |
Undo
Each change is one undo step, and each gesture is one step: a drag records a single Move Widget or Resize Widget entry when you release. Snapshots are the asset's MDF text, so structural edits undo as cleanly as numeric ones.
Known gaps
Favourites do not persist between sessions, and device frames, DPI scale and sample values are editor state that is never saved in the asset.
Related
- Game screens for what each field in the asset does at run time.
- Styling for themes and tokens.
- The Visual Scripting editor for writing the controller class.
Engine sources
This page describes behavior implemented in these files of the engine repository, checked against commit 8bc0dfcb0.
- Engine/Source/Gameplay/MiriGraphics/Api/MiriGraphics/FMiriGraphicsWidgetFactory.h