FInteractiveToolActionSet maintains a list of FInteractiveToolAction. 更多...
#include <InteractiveToolActionSet.h>
Public 成员函数 | |
| void | CollectActions (TArray< FInteractiveToolAction > &OutActions) const |
| Return the internal list of registered Actions by adding to the OutActions array | |
| void | ExecuteAction (int32 ActionID) const |
| Execute the action identified by ActionID | |
| const FInteractiveToolAction * | FindActionByID (int32 ActionID) const |
| Find an existing Action by ID 更多... | |
| void | RegisterAction (UInteractiveTool *Tool, int32 ActionID, const FString &ActionName, const FText &ShortUIName, const FText &DescriptionText, EModifierKey::Type Modifiers, const FKey &ShortcutKey, TFunction< void()> ActionFunction) |
| Register an Action with the ActionSet. 更多... | |
FInteractiveToolActionSet maintains a list of FInteractiveToolAction.
Each UInteractiveTool contains an instance of this class.
| const FInteractiveToolAction * FInteractiveToolActionSet::FindActionByID | ( | int32 | ActionID | ) | const |
Find an existing Action by ID
| void FInteractiveToolActionSet::RegisterAction | ( | UInteractiveTool * | Tool, |
| int32 | ActionID, | ||
| const FString & | ActionName, | ||
| const FText & | ShortUIName, | ||
| const FText & | DescriptionText, | ||
| EModifierKey::Type | Modifiers, | ||
| const FKey & | ShortcutKey, | ||
| TFunction< void()> | ActionFunction | ||
| ) |
Register an Action with the ActionSet.
This function is intended to be called by UInteractiveTool::RegisterActions() implementations