What problem does it solve?
This Skill enables rapid creation and modification of Unreal Engine UMG Widget Blueprints via Python, reducing repetitive UI setup and ensuring consistency across projects.
Core Features & Use Cases
- Widget Blueprint creation using WidgetBlueprintFactory and WidgetService
- Programmatic configuration of widget hierarchies (CanvasPanel, Vertical/Horizontal Boxes, Buttons, TextBlocks)
- Event binding and UI logic extension via Python scripts
- Bulk UI generation for menus, HUDs, and in-editor tools
Quick Start
Use the UMG Widget Blueprints Skill to create a simple UI asset.
Example:
import unreal
factory = unreal.WidgetBlueprintFactory()
factory.set_editor_property("parent_class", unreal.UserWidget)
asset_tools = unreal.AssetToolsHelpers.get_asset_tools()
widget_asset = asset_tools.create_asset("MainMenu", "/Game/UI", unreal.WidgetBlueprint, factory)
unreal.EditorAssetLibrary.save_asset("/Game/UI/MainMenu")