Skip to main content

Unreal Engine UI implementationAI reads Lanhu designs and builds interactive UMG

AI retrieves Lanhu layout JSON and needed images, composes controls, sets anchors and wires game data in your UMG, C++ or Slate conventions; asset work uses the editor tools the host has.

Unreal Engine · UMG · Widget Blueprint · Slate

Workflow preview

Lanhu design
MCP / Skill reads
AI writes the code
  1. 1
    Name the design and role
  2. 2
    AI reads design and code
  3. 3
    Implement the project way
  4. 4
    Iterate inside PIE
Works with MCP or Skill

How does AI implement a HUD or menu in an Unreal project?

Unreal UI work usually involves arranging UMG controls, setting anchors and DPI, then connecting game data and input. AI uses MCP or Skill to retrieve Lanhu layout JSON and images, reads existing Widget, C++ or Slate code, and writes reusable layout and behavior. Widget Blueprint asset operations depend on the host’s editor tools.

Step 1

Your design and UI entry point
A Lanhu design link, Unreal version, target viewports and input devices, plus existing HUD widgets and game-data interfaces.

Step 2

MCP / Skill reads the design
Original layout JSON that can be read, plus supported images when downloads are enabled. The material can be saved locally.

Step 3

AI implements in your project
UMG, Slate and Blueprint work depends on the project and the AI host’s editing tools. Saving assets, binding data and checking runtime behavior require Unreal tools.

What AI does in your Unreal project

Have AI use existing widgets, naming and game interfaces to turn design regions into layout, style and state code. Handle anchors, DPI, pause state and focus together. Where editor assets need changes, identify what the available tools can execute.

From regions to a game interface

Unreal UI usually imports images, composes UMG or Slate hierarchies, sets anchors and DPI, then connects game data. AI continues in your Widget and C++ patterns.

Reuse the existing widgets

Shared controls, C++ classes and data interfaces come first — menus are part of the game.

Layout, data and input together

Containers, anchors, DPI, state updates and focus restoration are written the project way.

PIE is where it proves itself

Switch viewports, change game state, swap controller and keyboard, then keep fixing.

Connect visual regions to HUDs, menus and game data

On a narrow screen, scroll the table horizontally to compare all columns.

Connect visual regions to HUDs, menus and game data
Design cueAI follows project conventionsRun and compare
Status information at a screen cornerPlan UMG anchors, offsets and alignmentChange viewport ratios and check HUD position and visibility
A centered menu and backdropArrange containers, layer order and background input handlingOpen and close the menu to check occlusion, pause state and focus restoration
Panel and button artworkImport supported images and choose a Brush drawing modeResize panels and change DPI to inspect borders and images
Health, inventory and selectionConnect existing game data and eventsChange game state and check that text, progress and buttons update

Have AI reuse your widgets and game code

From a Lanhu link to a running interface: AI reads the design through MCP or Skill, writes code in your project, then runs and compares.

  1. 1

    Name the design and role

    Lanhu link, version, module and viewport — HUD, menu or dialog.

  2. 2

    AI reads design and code

    Retrieves JSON and images, then reads widgets, C++ / Slate and data interfaces.

  3. 3

    Implement the project way

    Reuse controls for UI and data connections; asset work goes through editor tools.

  4. 4

    Iterate inside PIE

    Change viewports and game states; check DPI, focus and returns.

Before calling it complete: UMG hierarchy, anchors and DPI · HUD data and input focus · PIE previews and image imports

A pause menu: connect it to the game’s pause flow

For a pause menu, AI reads the panel, backdrop and button layout, inspects pause and input-mode code, reuses button styles, and writes the continue, settings and exit connections. Widget asset configuration follows when editor tools are available.

HUDAnchors & safe bounds
UI region in the viewportUMGLayout · layering · input
Overlay layerFocus & input mode
DPIScaling policy belongs to the project
An example of the layout in a project. AI uses the Lanhu design data and existing project to choose components and arrange them.

Information in the Lanhu design

In the Lanhu design A centered pause panel and full-screen backdrop Continue, settings and exit buttons

AI implements in your project

In the Unreal project Reuse widgets and button styles Plan anchors and DPI for target viewports Connect pause state, input mode and focus on close

Give this task to AI
Take responsibility for recreating this Lanhu UI in the current Unreal project. Read layout JSON and needed images through MCP or Skill. Inspect existing widgets, C++ / Slate, module conventions and game-data interfaces, then write UI, state updates and input code in the project’s style rather than stopping at a plan. Handle containers, anchors, DPI and focus. Use available editor tools for Widget Blueprint or image-import operations. If supported, compare in PIE, change viewports and input devices, and fix differences. Give precise steps for asset operations and checks you cannot execute.

Compare the AI implementation in PIE

With Unreal editor tools, have AI check viewports, data and input in PIE, then revise code or supported assets. With file access alone, AI completes code and lists editor steps without claiming the game has run.

Check anchors and DPI in target viewports

Run at supported resolutions and window modes. Change aspect ratio and DPI to inspect menus, HUDs, text and edge actions. Confirm a plan for ratios the design omits instead of inferring anchors from canvas coordinates.

Trigger changes with real game data

Change health, inventory or timers and check that text and progress follow existing interfaces. Remove, recreate or change scenes to review bindings and cleanup.

Open and close menus with target input devices

Use the keyboard, mouse and controller to open a menu, move selection, confirm and cancel. Check initial focus, disabled buttons, backdrops and input restoration after closing.

Connect to Lanhu with MCP or Skill

Choose the entry your AI tool supports. Configure your platform API Key locally and sign in to Lanhu. Give AI the design link and project directory, then ask it to read the design, inspect your code conventions and implement the UI. MCP and Skill provide the same design-reading capabilities.

AI needs access to your project to edit code and a working runtime to verify the result. MCP / Skill supplies design data, not a built-in engine converter. Enable image downloads locally when needed and follow your AI tool’s data settings.

Questions about Unreal implementation

Who writes code, and who builds the Widget Blueprints?

AI writes C++ / Slate or the UI code patterns in scope; engine assets like Widget Blueprints need editor tools in the host. MCP or Skill only retrieves designs and brings no Unreal editor control. Without tools, AI delivers finished code plus an explicit list of remaining asset steps.

Does controller navigation come for free?

No. Design material explains the menu structure, but focusable items, navigation directions, initial focus and focus restoration must be configured in the project and verified with target input devices.

Can an existing Slate UI use the design?

Yes. Have AI read the project and follow its UMG or Slate approach. MCP or Skill does not convert designs into engine controls.

Can AI edit Widget Blueprints directly?

That depends on whether the AI host has an Unreal editor interface. With only file or code access, distinguish code changes from editor steps, then save assets and run the result in Unreal.

Does layer order generate controller navigation?

No. Design material can explain the menu structure, but focusable items, navigation directions, initial focus and focus restoration must be set in the project.

Experience Lanhu MCP Now

Create an account, get your API Key and choose MCP or the standalone Skill.

Your Lanhu login credentials stay on your device.