Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Use when building user interfaces — Control nodes, themes, anchors, containers, and layout patterns
67% 92%+25 ptsof test cases passed
Passed 22 of 24 test cases with the skill, and 16 of 24 without it.
This test ran on v1. v4 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
All examples target Godot 4.3+ with no deprecated APIs; GDScript first, then C#.
Related skills: responsive-ui for multi-resolution scaling, hud-system for in-game HUD patterns, dialogue-system for dialogue UI presentation, tween-animation for UI transition and animation effects.
Control is the base class for all UI nodes — it lives in a separate scene-tree branch from Node2D/Node3D with a fundamentally different layout model.
| Feature | Node2D | Control |
|---|---|---|
| Position model | World-space position (pixels from parent) | Anchor + offset relative to parent rect |
| Size | No intrinsic size | Has size, custom_minimum_size, and a computed minimum (get_combined_minimum_size()) |
| Theme | None | Inherits and overrides Theme resources |
| Focus | Not applicable | Built-in focus system (focus_mode, grab_focus()) |
| Mouse events | Manual via _input | gui_input, mouse_entered, mouse_exited |
| Layout helpers | None | Container subclasses auto-arrange children |
Every UI widget (Button, Label, LineEdit, etc.) extends Control. Key properties defined on Control itself:
anchor_left, anchor_top, anchor_right, anchor_bottom — fractional values (0.0–1.0) relative to the parent rectoffset_left, offset_top, offset_right, offset_bottom — pixel offsets applied after the anchor resolvessize_flags_horizontal, size_flags_vertical — how the node participates in Container layouttheme — a Theme resource; lookups check each ancestor Control/Window that has one, nearest first, and stop at the first parent that is neither (e.g. a CanvasLayer or Node2D)focus_mode — whether the node can receive keyboard/gamepad focusPlace UI nodes inside a CanvasLayer so they render on top of the 3D/2D world, unaffected by Camera2D transforms. Controls on the scene root's built-in canvas (layer 0) move with a Camera2D, because the camera sets that canvas's transform.
⚠️ Changed in Godot 4.7:
Control.accessibility_livechanged type fromDisplayServer.AccessibilityLiveModetoAccessibilityServer.AccessibilityLiveMode(LIVE_OFF = 0default,LIVE_POLITE,LIVE_ASSERTIVE) — accessibility enums/APIs moved to the newAccessibilityServersingleton. GDScript-compatible; breaks C# binary/source compatibility (rebuild against the new enum). See the 4.7 migration guide.
Next to this one in the catalogue, plus more from the same author.