FSlateWindowHelper::FindPathToWidget

Searches for the specified widget and generates a full path to it.

Choose your operating system:

Windows

macOS

Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Application/SlateWindowHelper.h

Include

#include "Application/SlateWindowHelper.h"

Source

/Engine/Source/Runtime/SlateCore/Private/Application/SlateWindowHelper.cpp

Syntax

static bool FindPathToWidget
(
    const TArray< TSharedRef< SWindow >> & WindowsToSearch,
    TSharedRef< const SWidget > InWidget,
    FWidgetPath & OutWidgetPath,
    EVisibility VisibilityFilter
)

Remarks

Searches for the specified widget and generates a full path to it.

this is a relatively slow operation!

Returns

True if the widget path was found.

Parameters

Parameter

Description

InWidget

Widget to generate a path to.

OutWidgetPath

The generated widget path.

VisibilityFilter

Widgets must have this type of visibility to be included the path.