Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/IWidgetReflector
Description
Take a snapshot of the UI pertaining to the widget that the user is hovering and visualize it. If we are not taking a snapshot, draw the overlay from a previous snapshot, if possible.
| Name | Visualize |
| Type | function |
| Header File | /Engine/Source/Runtime/Slate/Public/Framework/Application/IWidgetReflector.h |
| Include Path | #include "Framework/Application/IWidgetReflector.h" |
int32 Visualize
(
const FWidgetPath & InWidgetsToVisualize,
FSlateWindowElementList & OutDrawElements,
int32 LayerId
)
The maximum layer ID that we attained while painting the overlay.
Parameters
| Name | Remarks |
|---|---|
| InWidgetsToVisualize | WidgetPath that the cursor is currently over; could be null. |
| OutDrawElements | List of draw elements to which we will add a visualization overlay |
| LayerId | The maximum layer id attained in the draw element list so far. |