Skip to main content

UiToolkitTester

8 tools in this family (folder Editor/Tools/UiToolkitTester/ in the bridge package). Effect: writes changes the project or the scene, read-only does not, destructive deletes or overwrites and the client asks before running it.

ToolEffectDescription
uitester_assert_class_presentread-onlyAssert that an element (resolved by name) carries a specific USS class.
uitester_assert_visibleread-onlyAssert that an element is rendered to screen: resolvedStyle.display != None AND
uitester_click_buttonwritesFind a Button by name in a UIDocument and invoke its clicked callback.
uitester_dump_uidocument_hierarchyread-onlyDump the entire VisualElement tree of a UIDocument as nested JSON.
uitester_query_by_classread-onlyRun UQuery.Q(className=...) against a UIDocument. Returns metadata for every matching element.
uitester_query_by_nameread-onlyRun UQuery.Q(name=...) against a UIDocument and return metadata for every matching element
uitester_query_by_selectorread-onlyResolve a SIMPLE USS-style selector against a UIDocument. Supported shapes:
uitester_set_text_fieldwritesFind a TextField (or any string-valued field) by name and write a new value.