Logo de Umg Widgets

Umg Widgets

Comunidade
kevinpbuckley
umg-widgets

Create and modify UMG Widget Blueprints (UI) — build the widget hierarchy, set properties, style fonts/brushes, author widget animations, bind events, capture previews, run PIE checks, and wire MVVM ViewModels. Use when the user asks to create a UI/HUD/menu, add or arrange widgets (Button, TextBlock, Image, panels), style or animate a widget, or set up data bindings in a Widget Blueprint (WBP).

Add to TypingMind

Visão geral

Publicado porkevinpbuckley
RepositórioVibeUE
Nome da habilidadeumg-widgets
Estrelas
735
Forks
161
Arquivos incluídos
13
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Arquivos incluídos: 13

    Scripts, templates e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente para leitura e nunca são executados.

  • Código aberto

    Publicada por kevinpbuckley no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Umg Widgets no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/kevinpbuckley/VibeUE/tree/master/Content/Skills/umg-widgets
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kevinpbuckley/VibeUE.git /tmp/VibeUE
mkdir -p .claude/skills
cp -r /tmp/VibeUE/Content/Skills/umg-widgets .claude/skills/umg-widgets
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Umg Widgets em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Umg Widgets automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Umg Widgets não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

🧠 Brains complement: IF an unreal-engine-skills-manager tool (external MCP) exists in this session, call it with {action: "load", skill: "umg-and-slate"} for UE domain knowledge on this topic — correct APIs, architecture, best practices — and treat it as the rubric for any review / "best practices" question. If no such tool is available (e.g. running under Claude Code or Codex without that MCP), skip this line entirely and proceed with this skill alone — do NOT attempt the call.

UMG Widget Blueprints Skill

This skill covers authoring Widget Blueprints (WBP) with WidgetService. Read the Critical Rules below first — they prevent the most common failures. Then pick a task from the Task Index and load the matching workflow doc and/or run the matching sample script.

Load the blueprints skill when you also need to add Blueprint variables, functions, or components, and blueprint-graphs when wiring event-graph nodes for bound events.

Critical Rules

🚨 Creating Widget Blueprints — only one pattern works

WidgetService does not create the asset. Create it with the factory, then use WidgetService to populate it:

python
import unreal
factory = unreal.WidgetBlueprintFactory()
factory.set_editor_property("parent_class", unreal.UserWidget)
asset_tools = unreal.AssetToolsHelpers.get_asset_tools()
asset_tools.create_asset("MainMenu", "/Game/UI", unreal.WidgetBlueprint, factory)

Do not call BlueprintEditorLibrary.get_blueprint_class(), unreal.create_widget_blueprint(), or WidgetService.create_widget() — none exist. (Runnable: scripts/create_widget.txt.)

🚨 Hierarchy: set the root first, parents before children

python
unreal.WidgetService.add_component(path, "CanvasPanel", "RootCanvas", "", True)   # empty parent -> becomes root
unreal.WidgetService.add_component(path, "Button", "PlayButton", "RootCanvas", False)

That 5th argument is is_variable, not set_as_root — a widget becomes the root because its parent name is empty, not because of that flag. A 6th argument, child_index, inserts at a position instead of appending; reorder_component moves an existing widget within its parent. See reference.md ▸ Child order.

⚠️ Widget names are unique per-blueprint, NOT per-parent. UMG enforces one name across the whole Widget Blueprint, so you can't add an ItemLabel/ItemButton under each of Item1, Item2, Item3. Suffix per-parent (Item1Label, Item2Label, …) — reusing a name silently lands the component on the wrong parent or no-ops.

🚨 Property values are ALWAYS strings

python
unreal.WidgetService.set_property(path, "PlayText", "Font.Size", "24")  # "24", not 24

🚨 Color properties: FSlateColor vs FLinearColor — verify with a readback

ColorAndOpacity on text/image widgets is FSlateColor, whose export text is "(SpecifiedColor=(R=1.0,G=0.5,B=0.0,A=1.0))" — a bare LinearColor string is auto-wrapped into that form by set_property. ShadowColorAndOpacity is a plain FLinearColor: "(R=0.0,G=0.0,B=0.0,A=1.0)". Named color strings ("red", "orange") are NOT supported on either — pass numeric RGBA.

Always get_property after set_property and compare. A struct set can return True while writing nothing (UE struct import ignores unrecognized member names). If the readback still shows the old value, your value string didn't match the struct's member layout — check list_properties for the property's real type and use its export-text form.

🚨 Use dedicated style APIs for full font/brush edits

Use set_font / set_brush (with WidgetFontInfo / WidgetBrushInfo) when changing a complete font or brush — they keep related fields together. Use set_property only for single leaf values or slot aliases like Position X, Size Y, Anchor Min X. See reference.md for every field name; runnable examples in scripts/apply_font.txt and scripts/apply_brush.txt.

set_brush requires a slot_name: set_brush(widget_path, component_name, slot_name, brush_info) (for an Image the slot is "Brush"). set_font takes an optional property_name that defaults to "Font".

⚠️ set_property("Font.Typeface", ...) silently returns False (size and color leaf-sets work, but typeface/family do not go through the struct sub-property path). Always change typeface/family via set_font with a WidgetFontInfo. Don't trust the True/False return of set_property on nested struct sub-fields — read it back to confirm.

✅ set_font colour is now applied (ColorAndOpacity is an FSlateColor; the old path silently no-op'd a bare (R=,G=,B=,A=) tuple). Pass a LINEAR tuple, e.g. (R=0.035,G=0.002,B=0.002,A=1); set_font returns False and logs a Warning if a supplied colour did not land, so trust the return.

⚠️ get_font readback quirk (issue #470): the struct-typed string fields color, shadow_color, and shadow_offset come back as two concatenated representations glued together, e.g. shadow_offset == "(X=0.0,Y=0.0)(X=1.000000,Y=1.000000)". The trailing parenthesized group is the real value. Scalar fields (size, typeface, font_family, letter_spacing, outline_size) are clean. When verifying a font round-trip, parse the last (...) group of these three fields (or compare scalars only) until #470 is fixed.

🚨 Override-gated properties (SizeBox width/height etc.)

set_editor_property("width_override", 34.0) on a USizeBox stores the value but leaves the paired bOverride_WidthOverride edit-condition flag false — the override silently never applies (the value even reads back as 34.0). Call the dedicated setters (set_width_override(), set_height_override(), set_min_desired_width(), ...) which set flag + value together. Applies to any widget property gated by a bOverride_* flag; after a raw property set, read the flag back before trusting the layout.

🚨 Animations require real property paths

add_animation_track / add_keyframe target actual widget properties or slot aliases (RenderOpacity, ColorAndOpacity, Position X/Y, Size X/Y). Always create the animation first, then the track, then keyframes. (Runnable: scripts/create_animation.txt.)

🚨 Preview vs PIE — different purposes

  • capture_preview renders an editor-side PNG without starting gameplay — use for appearance checks. It now renders with a single gamma pass (an sRGB PNG matching the designer, no more double-gamma) and a layout prepass (Overlay-centred content is centred, not bottom-aligned).
  • start_pie + spawn_widget_in_pie are for runtime state / live property reads — use only when you need a live instance.

🚨 Custom WBPs as components — discover first, pass the asset name

Use list_widget_blueprints("") to find existing WBPs, then pass just the asset name (e.g. "WBP_HealthBar", not the full package path) as component_type. The child WBP must already exist; circular references are rejected; the parent recompiles automatically.

🚨 Field-name gotchas (return objects)

WRONGCORRECT
p.namep.property_name
p.typep.property_type
p.property_valuep.current_value
w.component_name / w.namew.widget_name
w.widget_typew.widget_class

WidgetInfo complete fields: widget_name, widget_class, parent_widget, is_root_widget, is_variable, children.

children is an Array[str] of widget NAMES, not nested objects. Iterating it and reading .widget_name/.is_variable raises AttributeError: 'str' object has no attribute .... To walk the tree, build a name→info map first:

python
infos = {w.widget_name: w for w in unreal.WidgetService.get_hierarchy(path)}
for child_name in infos["RootCanvas"].children:
    child = infos[child_name]          # look the child up by name
    print(child.widget_name, child.widget_class, child.is_variable)

get_widget_snapshot(path) returns full data (hierarchy + slot + all properties) for a valid path — if it comes back empty, the path is wrong; do not conclude the widget is empty.

Full field tables for every return type are in reference.md.

🚨 Auditing widgets (best-practices review) — use these exact APIs

For "do our widgets follow best practices?" style audits:

  • Property bindings (the #1 anti-pattern): in a snapshot's properties, any *Delegate entry (e.g. VisibilityDelegate, TextDelegate) with current_value of (null).None is unbound — a function name there means a polling property binding exists.
  • Tick/graph checks go through BlueprintService (a WBP is a Blueprint): list_graphs(path) → get_nodes_in_graph(path, "EventGraph") → find Event Tick → get_node_pins(path, graph, node_id) and check each pin's connected flag. A Tick node with no connected pins is just the default stub, not live logic.
  • These methods do NOT exist — do not guess them: BlueprintService.get_graphs, get_functions, get_connected_nodes, unreal.find_class. Use list_graphs, list_functions, get_nodes_in_graph, get_node_details (includes pin connections), and unreal.load_class(None, path) instead.

Slot editing via set_property

set_property edits slot layout through these aliases (string values):

  • Canvas children: Position X/Y, Size X/Y, Anchor Min X/Y, Anchor Max X/Y, Alignment X/Y (pivot — set to 0.5 with anchors at 0.5 to truly center), ZOrder (or Z Order).
  • Box/Overlay children (VerticalBox/HorizontalBox/Overlay): Horizontal Alignment / Vertical Alignment (values Fill/Left/Center/Right/Top/Bottom), Padding (one value or (Left=..,Top=..,Right=..,Bottom=..)), Padding Left/Top/Right/Bottom, and on box slots Size Rule (Fill/Automatic) + Size Value.
python
unreal.WidgetService.set_property(path, "PlayButton", "ZOrder", "5")
unreal.WidgetService.set_property(path, "HeaderRow", "Vertical Alignment", "Top")
unreal.WidgetService.set_property(path, "HeaderRow", "Padding", "8")

Shadowed names prefer the WIDGET (fixed in issue #553). A name that exists on both a widget and its slot (e.g. HorizontalAlignment on a Border sitting in an Overlay) now writes the widget's own property; a log warning notes the ambiguity. To target the slot explicitly, prefix with Slot. — e.g. set_property(path, "BackgroundBorder", "Slot.HorizontalAlignment", "Center") (value aliases like Fill/Center still work behind the prefix). Names that exist only as slot aliases (the lists above) keep resolving to the slot with no prefix needed.

Reparenting — reparent_widget

Move an existing widget to a new parent panel (preserves the widget object/GUID):

python
unreal.WidgetService.reparent_widget(path, "BackgroundImage", "MainContainer")

Rejects moving a panel into itself/a descendant; the root cannot be reparented.

Panel types

TypePurpose
CanvasPanelAbsolute positioning (X, Y coords)
VerticalBoxStack children vertically
HorizontalBoxStack children horizontally
OverlayStack children on top of each other

Task Index

Pick the task, load its workflow section, and/or run its sample script via execute_python_code. Sample scripts under scripts/ are runnable examples — edit the variables at the top, then execute.

TaskWorkflowSample script (run via execute_python_code)
Create a Widget Blueprintworkflows.md → Create Widget Blueprintscripts/create_widget.txt
Build a menu (root + panel + buttons)workflows.md → Build a Menuscripts/build_menu.txt
Position widgets on a CanvasPanelworkflows.md → Canvas Positioning—
Inspect a widget (hierarchy + properties)workflows.md → Inspect a Widgetscripts/inspect_hierarchy.txt
Apply full font stylingworkflows.md → Font Stylingscripts/apply_font.txt
Apply full brush stylingworkflows.md → Brush Stylingscripts/apply_brush.txt
Author a widget animationworkflows.md → Widget Animationscripts/create_animation.txt
Bind a widget event to a functionworkflows.md → Bind Event—
Rename / remove a widgetworkflows.md → Edit the Hierarchy—
Edit slot layout (z-order, alignment, padding) / reparentSKILL.md → Slot editingscripts/edit_slots.txt
Capture a preview PNGworkflows.md → Capture Previewscripts/capture_preview.txt
Inspect a widget live in PIEworkflows.md → PIE Runtime Checkscripts/pie_inspect.txt
Add MVVM ViewModel + bindingsmvvm.mdscripts/mvvm_hud.txt

Sub-docs

Load these only when the task needs them — read the sibling file directly under Plugins/VibeUE/Content/Skills/umg-widgets/ (the engine AgentSkillToolset GetSkills is the loader that exposes this skill; there is no vibeue-skills-manager tool):

  • workflows.md — step-by-step task workflows with copy-paste Python for every task above.
  • reference.md — field-name tables for every return type (FWidgetInfo, FWidgetComponentSnapshot, FWidgetSlotInfo, FWidgetFontInfo, FWidgetBrushInfo, FWidgetAnimInfo, FWidgetPreviewResult, FPIEWidgetHandle), the WidgetService action list, common properties, and event names.
  • mvvm.md — MVVM ViewModel support: rules, creation types, binding modes, field names, and full add/bind/list/remove workflows.

Verification (do this before claiming success)

  1. After hierarchy edits: re-read with get_widget_snapshot(path) and confirm the expected widgets/parents.
  2. After property/style edits: read the value back (get_property / get_font / get_brush).
  3. Open/compile the WBP and confirm no errors, then unreal.EditorAssetLibrary.save_asset(path).

Never report a widget as created/configured until it appears in a fresh get_widget_snapshot result.

Additional gotchas

  • capture_preview renders correct gamma/colour now, but still confirm slot values with get_component_snapshot and layout in PIE. UMG colours are LINEAR — a dark sRGB red is about (0.035, 0.002, 0.002).
  • Slot values written through ObjectIterator are discarded on the next compile; set them with set_property(path, widget, "Slot.<Prop>", value) or in C++ NativeConstruct.
  • A fresh WBP has no root: the first add_component(path, type, name, parent_name="") becomes it. BindWidget binds only when the tree widget is is_variable=True; reading a bound member from Python is blocked, so enumerate ObjectIterator(unreal.TextBlock) filtered by the instance path.
  • bind_event is only provably bound on the GameInstance_*-outered PIE instance (asset/preview instances always read unbound); simulate a click with on_clicked.broadcast() on that instance. Hand-built bound-event nodes compile but never fire — use create_component_bound_event.
  • A widget can be fully authored yet never compiled; compile a legacy widget and read the error first. UE 5.8 renamed WidgetBlueprintLibrary to unreal.WidgetLibrary, and UserWidget instances do not expose get_widget_from_name.
  • Input modes: a UI-only mode drops the first WASD press after it closes, so use SetInputMode_GameAndUIEx in Construct; the input mode survives ServerTravel; DefaultInput.ini holds a full serialised InputSettings block mid-file, so a key appended at the section top is silently overridden.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Umg Widgets faz?

Create and modify UMG Widget Blueprints (UI) — build the widget hierarchy, set properties, style fonts/brushes, author widget animations, bind events, capture previews, run PIE checks, and wire MVVM ViewModels. Use when the user asks to create a UI/HUD/menu, add or arrange widgets (Button, TextBlock, Image, panels), style or animate a widget, or set up data bindings in a Widget Blueprint (WBP).

Por que usar Umg Widgets no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Umg Widgets é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Umg Widgets no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/kevinpbuckley/VibeUE/tree/master/Content/Skills/umg-widgets. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Umg Widgets?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Umg Widgets?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Umg Widgets com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Umg Widgets é gratuita?

Sim. A habilidade é publicada no GitHub por kevinpbuckley sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇