Hello, I’m trying to add a UListView to a menu and add delegates to the list tiems. So I’m trying to use UListViewBase::OnEntryWidgetGenerated() and ListViewBase::OnEntryWidgetReleased().
FOnListEntryGenerated and FOnEntryWidgetReleased have a “UUserWidget&” reference input parameter, and I can’t find any binding that compiles to that.
For example, if I write:
UFUNCTION()
void OnEntryWidgetGeneratedCallback(UUserWidget& InListEntry);
mListView->OnEntryWidgetGenerated().AddUFunction(this, FName(TEXT("OnEntryWidgetGeneratedCallback"));
Then I get an “error : Missing ‘*’ in Expected a pointer type” at the declaration of OnEntryWidgetGeneratedCallback.
If I write:
UFUNCTION()
void OnEntryWidgetGeneratedCallback(UUserWidget* InListEntry);
Then I get an “error C2665: ‘TTuple::TTuple’: none of the 2 overloads could convert all the argument types”
Any suggestions? Thanks!