Hi. I am using 4.7.6. I have loaded a blueprint widget in C++ and added it to the viewport successfully. I am now trying to play an animation, but I cannot figure out how to get a reference to a UWidgetAnimation that I have created in the blueprint through the editor…
In UserWidget.h I am wanting to call the function defined below:
Hi, thanks a bunch! So this required creating a custom class of UUserWidget to expose the animation variable. Then I set this class as the parent of my blueprint. Then in my pawn cpp file where I instantiate the blueprint, I changed the UUserWidget types to my custom class. This did allow me to then call PlayAnimation with the animation reference and it worked
Dear Daniele Faggion, thanks a lot! I thought about this idea extending UUserWidget, but I thought that’s too much. I’m glad I found someone who did this and this worked. Thanks!
Hello in your answer you wrote this - (make sure Context Sensitive is not checked if this doesn’t come up in the search results) how and where to install Context Sensitive to the menu you can see the animation?