Godot Uiのロゴ

Godot Ui

コミュニティ
EL4CTEO
godot-ui

Build Godot 4.7 user interfaces that work on PC, mobile and console - anchors and containers, responsive stretch settings, safe areas, Themes and type variations, gamepad/keyboard focus navigation, offset_transform animation (4.7), RichTextLabel, localization, accessibility (screen readers), drag and drop, HUD over 3D. Use for menus, HUDs, inventories, settings screens or any Control node work.

概要

公開者EL4CTEO
リポジトリgodot-skills
スキル名godot-ui
スター
60
フォーク
6
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    EL4CTEOがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Godot Ui」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-ui
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/EL4CTEO/godot-skills.git /tmp/godot-skills
mkdir -p .claude/skills
cp -r /tmp/godot-skills/skills/godot-ui .claude/skills/godot-ui
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでGodot Uiを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にGodot Uiを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Godot Uiは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

UI (4.7)

Build UI as scenes (ui/hud/hud.tscn) made in the editor, or with ../godot-core/scripts/scene_edit.py. Scripts only fill in data and react. Input actions and gamepads are in godot-input.

Layout fundamentals

  • Containers do the layout. Use VBoxContainer/HBoxContainer, GridContainer, MarginContainer (padding), PanelContainer (background), CenterContainer, ScrollContainer, FlowContainer (wrapping tags/items), AspectRatioContainer, TabContainer, FoldableContainer (4.5+) and SplitContainer. Children of containers ignore their own anchors and position.
  • Size flags decide each child's share: size_flags_horizontal = SIZE_EXPAND_FILL (+ size_flags_stretch_ratio), SIZE_SHRINK_CENTER, and so on. custom_minimum_size sets a floor.
  • The root of a UI scene is a Control with set_anchors_and_offsets_preset(PRESET_FULL_RECT). HUD corners use anchor presets (PRESET_TOP_LEFT …) plus a MarginContainer.
  • To animate or juice controls inside containers, use the 4.7 offset_transform_* properties (offset_transform_enabled, _position, _rotation, _scale, _pivot_ratio, _visual_only). Containers don't overwrite them, unlike position/scale. pivot_offset_ratio (4.6+) sets a pivot as a fraction of size, so (0.5, 0.5) is the center.
  • mouse_filter: STOP (default for most), PASS, or IGNORE for decorative overlays that would otherwise block clicks to the game. Use mouse_behavior_recursive/focus_behavior_recursive (4.5+) to disable a whole subtree.

Multi-resolution and devices

  • New 4.7 projects use stretch mode canvas_items + aspect expand. Design at 1920×1080 (or 1280×720) and anchor to edges so wider and taller screens just reveal more space. Pixel-art games use viewport + integer scaling (see godot-2d).
  • Mobile safe area (notches): read DisplayServer.get_display_safe_area() and pad the root MarginContainer (see the reference).
  • Text size: minimum ~24 px at 1080p for TV/console legibility, and touch targets of at least ~48 px at the base resolution.
  • Window.content_scale_factor gives a user-facing "UI scale" option.

Theme instead of per-node overrides

  • Make one Theme resource (ui/theme/main_theme.tres) and set it on the root Control, or project-wide in gui/theme/custom. Define default fonts, sizes and StyleBoxes there.
  • Variants: set theme_type_variation = &"DangerButton" on a node, and define DangerButton (base type Button) in the theme. This is better than scattered add_theme_*_override calls.
  • Fonts: use FontFile with FontVariation for weight and spacing. For crisp text at any scale, enable MSDF on the font import (great for world-space labels).

Focus and navigation (required for gamepad and console)

  • Every interactive control needs focus_mode = FOCUS_ALL. Call grab_focus() on the first button when a menu opens. 4.6+ separates mouse and keyboard focus: grab_focus(true) focuses without showing the outline.
  • Godot picks neighbors automatically, by geometry. Override them with focus_neighbor_*/focus_next in grids and odd layouts.
  • Built-in actions ui_accept, ui_cancel, ui_up/down/left/right, ui_focus_next already map to arrows, Enter, Escape and gamepad. Add your own bindings to them, never replace them.
  • Track focus with get_viewport().gui_focus_changed, for example for sounds or scrolling into view. Make sure no menu is ever left with nothing focused.

Text

  • Label (autowrap_mode, text_overrun_behavior, LabelSettings for outline and shadow, stacked effects in 4.5+), RichTextLabel (bbcode_enabled, append_text, [url] + meta_clicked, [img height=1em] in 4.7, custom effects).
  • Localization: write keys or English source text, then tr("KEY") / tr_n(). Nodes auto-translate their text (auto_translate_mode). Add .po or .csv files in Project Settings → Localization, and switch with TranslationServer.set_locale("de"). C# Tr() strings are extracted to POT too (4.6+).

Accessibility (4.5+, AccessKit)

Standard controls are announced automatically. Give icon-only buttons accessibility_name, use accessibility_description for extra context and accessibility_live for changing status text. Keep focus order logical, because screen readers follow it.

HUD over 3D and world-space UI

  • HUD: a CanvasLayer with your Control tree, so it ignores the camera.
  • World-space health bars: either Label3D/Sprite3D (billboard), or a SubViewport holding Controls rendered to a ViewportTexture on a quad. Projecting a 3D point with camera.unproject_position() onto a 2D control is also cheap.

Common mistakes

  • Setting position/size on children of containers (it gets overwritten). Use size flags, minimum size or offset transforms instead.
  • Full-screen invisible Controls with mouse_filter = STOP that block game input.
  • Menus that can't be closed or navigated without a mouse.
  • Hard-coded strings in code that never pass through tr().

Responsive layout, menu focus, tweened buttons, inventory drag and drop, safe area (compiled by the tests): references/patterns.md

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Godot Ui」では何ができますか?

Build Godot 4.7 user interfaces that work on PC, mobile and console - anchors and containers, responsive stretch settings, safe areas, Themes and type variations, gamepad/keyboard focus navigation, offset_transform animation (4.7), RichTextLabel, localization, accessibility (screen readers), drag and drop, HUD over 3D. Use for menus, HUDs, inventories, settings screens or any Control node work.

TypingMindでGodot Uiを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Godot Uiはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにGodot Uiをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-uiを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Godot Uiを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Godot Uiで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもGodot Uiを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Godot Ui」は無料ですか?

はい。EL4CTEOがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇