Hey there guys.
I’m trying to bind some commands on to a Slate Widget that is on editor window… but it isn’t working… My choices are:
- I’m doing this totally wrong
- I don’t have focus for some reason
Here’s my code:
//Create the Command mapping
ToolkitCommands->MapAction(
FPaperZDAnimBPEditorCommands::Get().DeleteAnimSequence,
FExecuteAction::CreateSP(this, &SPaperZDMySequences::HandleDeleteSelectedAnimSequence),
FCanExecuteAction());
Where the commands are declared like this:
UI_COMMAND(DeleteAnimSequence, “Delete”, “Deletes an AnimSequence, unregistering from the Animation Blueprint”, EUserInterfaceActionType::Button, FInputChord(EKeys::Platform_Delete));
But this isn’t working… is there something else i’m missing on how to provide linkage to my commands via pressing DELETE?
Cheers!