I am just wondering what the best way is to jump from an event graph on a Widget BP to a function on the same BP and back again to the event graph after the function completed its task.
I played around with just calling an event from the function to the event graph to say the function is done and the information is passed on to the rest of the execution line on the event graph.
However I ran into issues with the event graph not getting all the information from the function so I assume the function didn’t have time to finish its execution and the last part of the execution fired too soon on the event graph.
The way I know this is because I am creating a save game to slot and I noticed that the missing information was not written into the save text file. Its encrypted when you open it in a notepad but you can read the variable names in English. So I saw that the one variable that defines the material name that needs saving out was just not saved out. Just missing text. Loading code works fine. It did work for most of the time but every now and then it would just “forget” to save out the material name variable.
I also had the event not fire at all.
Not sure if I need to use an event dispatcher from the function graph to the event graph or if I can just call a custom event.
What would you guys say?
Also is it better to collapse a group of nodes on the event graph to a function or is it better to create the nodes in a new function?