FEditablePalette

An [FToolPalette](API\Developer\WidgetRegistration\FToolPalette) to which you can add and remove actions

Unreal Engine C++ API Reference > Developer > WidgetRegistration

Inheritance Hierarchy

References

   
Module WidgetRegistration
Header /Engine/Source/Developer/WidgetRegistration/Public/ToolkitBuilder.h
Include #include "ToolkitBuilder.h"

Syntax

struct FEditablePalette : public [FToolPalette](API\Developer\WidgetRegistration\FToolPalette)  

Remarks

An FToolPalette to which you can add and remove actions

Variables

Type Name Description
const TSharedPt... AddToPaletteAction The FUICommandInfo which adds an action to this palette
FName EditablePaletteName The (unique) name attached to this palette, enables saving the palette contents into config if provided
FGetEditableToo... GetConfigManager Delegate used to check if we have a config manager and get it
FSimpleDelegate OnPaletteEdited Delegate used by FToolkitBuilder that is called when an item is added/removed from the palette
TArray< FString... PaletteCommandNameArray The TArray of Command names that are the current FuiCommandInfo actions in this Palette
const TSharedPt... RemoveFromPaletteAction The FUICommandInfo which removes an action to this palette

Constructors

Type Name Description
  FEditablePalette ( TSharedPtr< FUICommandInfo > InLoad..., TSharedPtr< FUICommandInfo > InAddT..., TSharedPtr< FUICommandInfo > InRemo..., FName InEditablePaletteName, FGetEditableToolPaletteConfigManage... )  

Functions

Type Name Description
void AddCommandToPalette ( const FString CommandNameString )  
TArray< FStr... GetPaletteCommandNames ()  
bool IsInPalette ( const FName CommandName ) Given a reference to a FUICommandInfo, returns whether it is in the current Palette
void LoadFromConfig ()  
void RemoveCommandFromPalette ( const FString CommandNameString )  
void SaveToConfig ()  

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library