However the event is not visible in the blueprint of the custom UserWidget.
Am I doing something wrong or is it not possible to have a dynamic multicast delegate in a UUserWidget?
when i create a blueprint class of UMenu, it does not show the OnOpened event on the right in the blueprint details as it would for example show an OnClicked in the UBbutton details
i dont want to fire the event from the blueprint, i just want to assign it in the blueprint
Yeah that won’t work then, you need to create a new Widget Blueprint (User Interface > Widget Blueprint), then reparent it (file > reparent blueprint) to you custom class.
Widgets are the only class you need to do this with, as creating it as a normal blueprint doesn’t let you use the UMG editor either.
also i dont think theres a difference with creating a new widget blueprint and then reparenting it or simply creating it like i said (as shown in the next picture)
The events don’t appear there on the CDO - you just hook them on the blueprint graph normally if you’re inside the class declaring them. Events only shows up in the details panel if you’re instancing this widget on another widget blueprint.
Normally the pattern is to have a multicast delegate for external folks, and to make a function that’s a BlueprintImplementableEvent that a subclassed BP can override.