Godot UI control
Godot 4.7 Control-node API for menus and HUDs.
Safety check
- Not rated by Claude yet. We only sell skills Claude has read and rated 7 out of 10 or higher, so this one is a free link to its author.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: godot-ui-control
description: >
Godot 4.7 Control-node API for menus and HUDs: anchors, Containers, Theme and StyleBox, focus
neighbours and stretch settings, with a headless layout check. Use when Godot UI overlaps or
drifts on resize, buttons ignore the gamepad, or an invisible panel swallows clicks. Not for
engine-neutral UI rules (`game-ui-ux`; load both) or rebinding (`input-systems`).
---
# Godot UI / Control nodes (4.x)
Lay out responsive UI with `Control` anchors and `Container` nodes, style it with a
`Theme`, make it navigable by keyboard and gamepad, and prove the layout holds at more
than one screen size. Targets **Godot 4.7** (see Version notes). Design rules (what a good
HUD or menu needs) live in `game-ui-ux`; load both for engine UI work.
## When to use
- HUDs, menus, inventories, dialog boxes or settings screens built from `Control` nodes;
UI that must adapt to window size; theming; focus navigation for controller/keyboard.
**When *not* to use:** in-world `Node2D`/sprites → `godot-nodes-scenes`; UI tweens →
`godot-animation`; rebinding → `input-systems`; card hands and VN text boxes →
`card-game` / `visual-novel`.
## Core workflow
1. **Read the stretch settings first.** `project.godot` `[display]` holds
`window/size/viewport_width`/`viewport_height` (base size, default 1152x648),
`window/stretch/mode` (`canvas_items` is the usual choice for UI-heavy games) and
`window/stretch/aspect` (`expand` lets UI use extra width or height). Layout bugs on
other screens usually start here.
2. **Use `Control` nodes for UI**, not `Node2D`, and put HUDs under a `CanvasLayer` so the
game camera does not move them.
3. **Anchor top-level panels; let Containers place their children.** Outside containers,
set anchors with presets (`set_anchors_and_offsets_preset()`). Inside a `VBoxContainer`,
`HBoxContainer`, `GridContainer` or `MarginContainer`, the container owns position and
size; steer it with `size_flags_*`. In a `.tscn`, a Full Rect panel reads:
```ini
...From gamedev-skills's repository, Apache-2.0 licence.
Related skills
-
Checked
Web design builder
Builds polished web pages, dashboards and prototypes in HTML, CSS and React, then checks them in a browser.
7/101 credit -
Checked
React Native accessibility
Writes React Native screens that pass AMA accessibility checks, so every user can get through your app.
8/101 credit -
Checked
Web animation builder
Builds web animations by deciding purpose, curve, duration and exit in order, so motion feels right.
8/101 credit -
Checked
Janky animation fixer
Finds why a web animation drops frames and picks properties that stay smooth, so motion runs without stutter.
7/101 credit -
Checked
Apple style fluid motion
Builds springy, interruptible gestures and sheets for the web the Apple way, so your interface feels native.
8/101 credit -
Checked
Enter and exit animations
Decides what should animate and builds enters, exits, icon swaps and drag with exact timing and easing values.
7/101 credit