unreal.UMGToolSet

class unreal.UMGToolSet(outer: Object | None = None, name: Name | str = 'None')

Bases: ToolsetDefinition

UMG widget toolset for AI-driven widget creation and tree manipulation.

IMPORTANT WORKFLOW - for every widget and slot returned by this toolset:
  1. Call ObjectTools.list_properties(widget) to discover exact property names.

  2. Call ObjectTools.get_properties(widget, […]) with those exact names.

  3. Call ObjectTools.set_properties(widget, {…}) with those exact names.

Property names vary per widget class and CANNOT be guessed - list_properties is required. Skipping step 1 causes set_properties to silently fail or set wrong properties.

Returns UObject pointers - ToolsetRegistry serializes them as {“refPath”: “…”} automatically. Pass returned Widget, Slot, and Parent pointers directly to ObjectTools or back to this toolset.

C++ Source:

  • Plugin: UMGToolSet

  • Module: UMGToolSet

  • File: UMGToolSet.h