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).
Solution:Jump to solution
Locally changing line 107 of
WidgetBlueprintHookManager.h
back to:
...and it's showing in the editor again. I'll populate it and see if it works....8 Replies
Looks like the class is missing
NotBlueprintable, BlueprintType, EditInlineNew
from its UCLASS. It had these before but Arch removed them when refactoring the hooking stuffSo an accidental removal in the hooking rework?
Solution
Locally changing line 107 of
WidgetBlueprintHookManager.h
back to:
...and it's showing in the editor again. I'll populate it and see if it works.any luck?
Yes, it did work! At least, for my widget hook use case.
sweet, digby tested it and PR'd it as well
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.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