Interface Event only executed once
Edit: Sorry I didn't test that before posting, but I can not reproduce the issue in a clean project. However the issue still persists for my project and I am so far unable to fix it.
Here I am calling the Interface Function
Here I am implementing the Interface in my Widget Blueprint
The first time the Interface Function is called, I receive both the UE_LOG and the PrintString. The second time, I receive just the UE_LOG and not the PrintString. Therefore my code is clearly working, but only the first time it is executed.
Edit 2: I have tried pretty much anything to get it working: I tried rebuilding/resetting the project. I tried it in a clean project (where it worked just fine, but there is virtually no difference how the Interface is implemented. It also worked in the same project with a Pawn Class, but it didn't work with a different Blueprint Widget. And it didn't work with recreating the Interface class. I really can't think of anything else I could try to get it working. So I really appreciate any suggestions to get it working. Thanks everyone.
I'm glad you were able to find a solution for the issue. I have entered the bug report UE-33782 to investigate the behavior of the SetWidget() function.
answered Jul 26 '16 at 03:50 PM
I don't know if there is a difference but in my case this works fine.
EDIT: Sorry I thaught that your UE_LOG inside the If Statement is not printing. Just Mixed it up :P
Follow this question
Once you sign in you will be able to subscribe for any updates here