Hello! I am trying to update the size of an image on a UserWidget. This functionality has always existed and worked in BP. Problem is I need to call it from c++. The reason for this is that I need to update the size when the server finishes determining what the item and size are. So, I made a cpp class that our Item widget inherits from. I created a BlueprintImplementableEvent and implemented the event in the Blueprints to work as we want.
Here is the execution flow:
- BP says we need to swap an item.
- Calls into CPP, client side, to start the swap, sending the item and widget
- Calls to server with item and widget parameters
- Server determines the requirements and calls Client function with item result and same widget.
- Client code executes the widget update here.
This execution is all occuring, however, when getting to step 5, in the client code, the editor is crashing when trying to call the BlueprintImplementableEvent.
The resulting error is caused here in the generated cpp :
ProcessEvent(FindFunctionChecked(NAME_UItemWidget_UpdateSize_cpp),NULL);
It seems that the cpp can’t seem to find a function with the following name? Does this matter that it’s implemented as an event in the BP as opposed to a function? What could be going wrong here?