Navigation
API > API/Plugins > API/Plugins/SlateInspectorToolset > API/Plugins/SlateInspectorToolset/USlateInspectorToolset
Description
Capture a Slate UI accessibility snapshot. Use this to read the current widget tree and discover refs for action tools (Click, Type, Hover, etc.). A shallow root observer (depth 0) covers top-level windows automatically. Before interacting with a specific window or panel, call Observe() on it to get deep coverage, then Snapshot that subtree to see its contents. Refs discovered by a previous Snapshot remain usable. You do NOT need to call Snapshot again before every action.
| Name | Snapshot |
| Type | function |
| Header File | /Engine/Plugins/Experimental/Toolsets/SlateInspectorToolset/Source/SlateInspectorToolset/Public/SlateInspectorToolset.h |
| Include Path | #include "SlateInspectorToolset.h" |
| Source | /Engine/Plugins/Experimental/Toolsets/SlateInspectorToolset/Source/SlateInspectorToolset/Private/SlateInspectorToolset.cpp |
UFUNCTION (Meta=(AICallable), Category="SlateInspectorToolset")
static FString Snapshot
(
const FString & Ref,
int32 MaxDepth,
bool bIncludeSourceLocations
)
Parameters
| Name | Remarks |
|---|---|
| Ref | Subtree root ref. Empty = all windows. |
| MaxDepth | Maximum depth (default 30). |
| bIncludeSourceLocations | Include [src=File:Line] tags showing where each widget was created in C++. |