How to cycle create UI_COMMAND?

you can simply use the function used by the macro :

#define UI_COMMAND( CommandId, FriendlyName, InDescription, CommandType, InDefaultChord ) \
	UI_COMMAND_Function( this, CommandId, TEXT(LOCTEXT_NAMESPACE), TEXT(#CommandId), TEXT(#CommandId) TEXT("_ToolTip"), "." #CommandId, TEXT(FriendlyName), TEXT(InDescription), CommandType, InDefaultChord );

in this case it would give something like :

UI_COMMAND_Function( this, CommandList[i], TEXT(LOCTEXT_NAMESPACE), TEXT("GenCommandName")+i, TEXT("GenCommandName")+i, TEXT("_ToolTip"), "." #CommandId, TEXT("test button"), TEXT("i'im note"), UserInterfaceAction::Button, FInputChord());

that should work ! :slight_smile:

edit: ok took me too long to answer ^^