Skip to main content

Godot UI implementationAI reads Lanhu designs and organizes the scene tree

AI reads Lanhu layout JSON and needed images, organizes Control and Container nodes by layout responsibility, reuses your Theme, shared scenes and signals, writes interactions in GDScript or C#, then runs the scene.

Godot · Control · Container · Theme

Workflow preview

Lanhu design
MCP / Skill reads
AI writes the code
  1. 1
    Point to the design and scene
  2. 2
    AI reads design and shared scenes
  3. 3
    Write nodes and signals by duty
  4. 4
    Run the scene and refine
Works with MCP or Skill

How does AI recreate UI in the style of my Godot project?

Godot UI work usually starts with Controls and Containers, followed by a Theme, signals and scripts. AI uses MCP or Skill to read Lanhu layout JSON and images, inspects existing scenes and GDScript or C# code, then implements the interface with the same node, style and signal conventions. With a Godot environment, it can run and adjust the result.

Step 1

Your design and scene location
A Lanhu design link, Godot version and scripting language, existing scenes and Theme, and target windows and input methods.

Step 2

MCP / Skill reads the design
Original layout JSON accessible to your account and saved locally, plus supported images when downloads are enabled.

Step 3

AI implements in your project
AI implements scenes, nodes and scripts in the project. Resource imports, signal connections and actual input need runtime checks in Godot.

What AI does in your Godot project

AI uses visual groups to write nodes and scripts. Containers own layout, the Theme owns shared styles, and signals connect behavior. Reuse your scenes and scripting language rather than introducing another UI system for one design.

Layers become node duties

Godot UI usually means Control nodes, Containers, a Theme and signals. AI organizes the tree by responsibility.

Read the scenes first

Containers own layout, the Theme owns style, signals own behavior — no parallel system.

Scenes and scripts your way

Text scenes and scripts follow the project version and reuse Theme and resource references.

Run the scene, verify input

Change the window and content length; check focus order and mouse_filter.

Make the scene tree express layout and control responsibilities

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

Make the scene tree express layout and control responsibilities
Design cueAI follows project conventionsRun and compare
Vertical settings and horizontal actionsUse VBoxContainer or HBoxContainer for the content relationshipTry longer text and add or remove rows to inspect neighboring controls
Buttons and content inside a containerAllocate space using minimum sizes and size flagsResize the window and check squeezed content and excess whitespace
Repeated panels, fonts and spacingReuse the Theme or existing reusable scenesChange a style once and compare its instances
Popups and transparent decorationSet layer order, focus and mouse_filterUse mouse and keyboard to check occlusion and event delivery

Let AI handle nodes, Theme and scripts

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

    Point to the design and scene

    Lanhu link, project, version, scripting language and target window.

  2. 2

    AI reads design and shared scenes

    Retrieves JSON and images, then reads Theme, controls and data interfaces.

  3. 3

    Write nodes and signals by duty

    Reuse Containers and Theme; connect resources, signals and state updates.

  4. 4

    Run the scene and refine

    Check long content, window changes, focus and mouse input.

Before calling it complete: Control hierarchy and container sizing · Themes, images and shared scenes · Focus navigation and mouse input

A settings menu: reuse the Theme and add reusable rows

For volume, language and display settings, AI reads layout and spacing, reuses the Theme and settings-row scene, then writes nodes and signal handlers for new options. Long translations and window resizing help check Container layout.

Scene tree study
  • Control
    • MarginContainer
      • VBoxContainer
        • Label
        • Button
Layout ownership
Container
Arranges its children
Theme
Shares control styles
Focus
Defines input order
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 heading, grouped settings and bottom actions Repeated panel and text styles

AI implements in your project

In the Godot project Arrange setting rows with Containers Use styles from the current Theme Connect control signals to settings scripts and define focus order

Give this task to AI
Take responsibility for recreating this Lanhu design in the current Godot project. Read layout JSON and needed images through MCP or Skill. Inspect the version, UI scenes, Theme, shared controls, script style and data interfaces. Keep the project structure and write scenes and scripts directly, handling Control / Container hierarchy, anchors, minimum sizes, resource references and signals. If Godot is available, run the scene, compare with the design, check window changes, long content, focus and mouse_filter, then fix differences. Clearly list checks you cannot run.

Have AI run the scene and refine node layout

With Godot runtime tools, have AI launch the scene with your Theme and data, compare it with Lanhu, then revise nodes, scripts and styles. Check Container reflow, signals and focus; provide explicit steps for anything it cannot run.

Add and remove content to see Containers reflow

Use longer translated text, hide an optional setting and add rows. Watch neighboring Controls move, then shrink the window to inspect minimum sizes, expansion and scrolling. If a position resets, establish which layer owns the layout.

Review the Theme in other scenes

After applying the Theme, compare buttons, type and spacing with existing menus. When changing a shared resource or local override, inspect its scope and avoid maintaining two sources of styles.

Trigger signals and check focus

Complete settings with the mouse and any supported keyboard or controller, then verify that signals reach existing scripts. Open popups and backdrops to inspect mouse_filter, focus order and focus on close.

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 Godot implementation

Can AI edit scene files directly?

With project file access, AI edits text scenes and scripts for the project version while reusing resources and Theme. MCP or Skill supplies design data rather than replacing Godot imports and runtime checks — have AI verify nodes, signals and behavior in the available environment.

Does every design layer become a node?

Not necessarily. Nodes should express layout, behavior and reuse boundaries; pure decoration belongs to the Theme or control styling. Let AI decide the hierarchy by duty.

Can I keep my existing scenes and scripts?

Yes. Have AI read scenes, Theme resources and signal handlers before deciding which nodes to add or reuse. Reading Lanhu material does not require a different scripting language or project structure.

Does each Lanhu layer need its own node?

No. Nodes should reflect layout, behavior and reuse boundaries. Some decoration can be expressed through the Theme or control styling.

Who positions a control inside a Container?

The Container manages its child Controls. Have AI adjust container settings, minimum sizes and size flags for the project version rather than repeatedly overriding the position in a script.

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.