FWidgetPath::GeneratePathToWidget

Generate a path from FromWidget to WidgetToFind. The path will not include FromWidget.

Windows
MacOS
Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Layout/WidgetPath.h

Include

#include "Layout/WidgetPath.h"

Syntax

template<typename MatcherType>
FArrangedChildren GeneratePathToWidget
(
    const MatcherType & Matcher,
    const FArrangedWidget & FromWidget,
    EUINavigation NavigationType,
    EVisibility VisibilityFilter
)

Remarks

Generate a path from FromWidget to WidgetToFind. The path will not include FromWidget.

Returns

A path from FromWidget to WidgetToFind; will not include FromWidget.

Parameters

Parameter

Description

Matcher

Some struct that has a "bool IsMatch( const TSharedRef& InWidget ) const" method

FromWidget

Widget from which we a building a path.AddItem*

VisibilityFilter

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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback