Navigation
API > API/Plugins > API/Plugins/SlateInspectorToolset > API/Plugins/SlateInspectorToolset/FSlateInspectorToolsetObserverMa-
Description
Find the best matching observer for the given root and return its cached snapshot.
A null RootWidget matches the root observer. Otherwise, matches an observer whose root is the given widget (preferring deeper MaxDepth).
| Name | FindMatchingObserverSnapshot |
| Type | function |
| Header File | /Engine/Plugins/Experimental/Toolsets/SlateInspectorToolset/Source/SlateInspectorToolset/Public/SlateInspectorToolsetObserverManager.h |
| Include Path | #include "SlateInspectorToolsetObserverManager.h" |
| Source | /Engine/Plugins/Experimental/Toolsets/SlateInspectorToolset/Source/SlateInspectorToolset/Private/SlateInspectorToolsetObserverManager.cpp |
FString FindMatchingObserverSnapshot
(
TSharedPtr < SWidget > RootWidget,
int32 MaxDepth
) const
The cached snapshot text, or empty if no matching observer found.
Parameters
| Name | Remarks |
|---|---|
| RootWidget | The root to match. Null = root observer. |
| MaxDepth | Only match observers with at least this depth. |