FScriptingCommand

All the internal data related to a scripting command as well as methods to easily expose the command to the binding manager

Choose your operating system:

Windows

macOS

Linux

References

Module

SlateScriptingCommands

Header

/Engine/Plugins/Slate/SlateScripting/Source/SlateScriptingCommands/Public/UICommandsScriptingSubsystem.h

Include

#include "UICommandsScriptingSubsystem.h"

Syntax

USTRUCT()
struct FScriptingCommand

Remarks

All the internal data related to a scripting command as well as methods to easily expose the command to the binding manager

Variables

Name Description

Public variable

FScriptingComma...

 

CommandInfo

The command definition

Public variable

FCanExecuteActi...

 

OnCanExecuteAction

The delegate to call to check whether the command can be executed

Public variable

FExecuteAction

 

OnExecuteAction

The delegate to call when executing the command

Constructors

Name Description

Public function

FScriptingCommand()

Public function

FScriptingCommand

(
    const FScriptingCommandInfo& InCom...,
    const FExecuteAction InOnExecuteAct...,
    const FCanExecuteAction InOnCanExec...
)

Functions

Name Description

Public function Const

FName

 

GetFullName()

Builds a full name in the format context.set.command_name to avoid conflicts with commands registered in different contexts/sets

Public function Const

TSharedPtr< ...

 

MakeUICommandInfo()

Registers a new UICommandInfo in the associated context through the binding manager.

Public function Const

bool

 

UnregisterUICommandInfo()

Unregisters this command's UICommandInfo from its associated context through the binding manager

Operators

Name Description

Public function Const

bool

 

operator!=

(
    const FScriptingCommand& Other
)

Public function Const

bool

 

operator!=

(
    const FName OtherName
)

Public function Const

bool

 

operator==

(
    const FScriptingCommand& Other
)

Public function Const

bool

 

operator==

(
    const FName OtherName
)