FUICommandList::MapAction

Maps a command info to a series of delegates that are executed by a multibox or mouse/keyboard input

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

void MapAction
(
    const TSharedPtr< const FUICommandInfo > InUICommandInfo,
    FExecuteAction ExecuteAction,
    FCanExecuteAction CanExecuteAction,
    FGetActionCheckState GetActionCheckState,
    FIsActionButtonVisible IsVisibleDelegate,
    EUIActionRepeatMode RepeatMode
)

Remarks

Maps a command info to a series of delegates that are executed by a multibox or mouse/keyboard input

Parameters

Parameter

Description

InUICommandInfo

The command info to map

ExecuteAction

The delegate to call when the command should be executed

CanExecuteAction

The delegate to call to see if the command can be executed

GetActionCheckState

The delegate to call to see what the check state of the action should be when visualized in a multibox

IsVisibleDelegate

The delegate to call to see if the command should appear or be hidden when visualized in a multibox

RepeatMode

Can this action can be repeated if the chord used to call it is held down?

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