FUICommandList::GetActionForCommandRecursively

Attempts to find an action for the specified command in the current UICommandList.

Windows
MacOS
Linux

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Framework/Commands/UICommandList.h

Include

#include "Framework/Commands/UICommandList.h"

Source

/Engine/Source/Runtime/Slate/Private/Framework/Commands/UICommandList.cpp

Syntax

const FUIAction * GetActionForCommandRecursively
(
    const TSharedRef< const FUICommandInfo > & Command,
    bool bIncludeChildren,
    bool bIncludeParents,
    TSet< TSharedRef< const FUICommandList >> & InOutVisitedLists
) const

Remarks

Attempts to find an action for the specified command in the current UICommandList. If it is not found, the action for the specified command is discovered in the children recursively then the parents recursively.

Parameters

Parameter

Description

Command

The UI command for which you are discovering an action

bIncludeChildren

If true, children of this command list will be searched in the event that the action is not found

bIncludeParents

If true, parents of this command list will be searched in the event that the action is not found

OutVisitedLists

The set of visited lists during recursion. This is used to prevent cycles.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss