Can't add Widget Blueprint Hooks in SML3.11 dev

Since the recent dev branch update to SML 3.11, I can't seem to select "Widget Blueprint Hook Data" when adding a new Widget Blueprint Hook to my Game Instance. The only option shown is None. Editing existing ones also seems to only show None, although all hooks are still working if I don't edit them. I didn't think the new Hook changes affected Widget Hooks, and I can't find any mention of them changing in the upgrade docs (other than the note about Inline templates).
No description
Solution:
Locally changing line 107 of WidgetBlueprintHookManager.h back to:
UCLASS(NotBlueprintable, BlueprintType, EditInlineNew)
UCLASS(NotBlueprintable, BlueprintType, EditInlineNew)
...and it's showing in the editor again. I'll populate it and see if it works....
Jump to solution
8 Replies
Mircea
Mircea5mo ago
Looks like the class is missing NotBlueprintable, BlueprintType, EditInlineNew from its UCLASS. It had these before but Arch removed them when refactoring the hooking stuff
Dortamur
DortamurOP5mo ago
So an accidental removal in the hooking rework?
Solution
Dortamur
Dortamur5mo ago
Locally changing line 107 of WidgetBlueprintHookManager.h back to:
UCLASS(NotBlueprintable, BlueprintType, EditInlineNew)
UCLASS(NotBlueprintable, BlueprintType, EditInlineNew)
...and it's showing in the editor again. I'll populate it and see if it works.
Robb
Robb5mo ago
any luck?
Dortamur
DortamurOP5mo ago
Yes, it did work! At least, for my widget hook use case.
Robb
Robb5mo ago
sweet, digby tested it and PR'd it as well
Dortamur
DortamurOP5mo ago
Thanks! There were a few other spots in that file that had BlueprintReadWrite removed but I'm not sure if there were valid use cases for those any more.
Robb
Robb5mo ago
they can be added back with access transformers if really needed, but widget blueprint hooks are planned to Eventually™️ be replaced with a new system sorta like actor mixins

Did you find this page helpful?