UMG to Actor BP communication and vice versa
I have a button on a UMG BP that when pressed activates a custom event to which executes in another Actor BP.
The UMG BP Graph:
The Actor BP Graph:
The problem i'm having is what am i supposed to be plugging into the object for the cast? I both referenced the button itself and the UMG BP but still fails. As well in other instances where i need to cast from Actor BP to Actor BP, i fail to cast to anything but the Character BP. Any help with me understanding better would be appreciated!
asked Feb 06 '16 at 03:40 AM in Blueprint Scripting
Well, you won't be able to directly access the actor from the UMG. But one option to get a reference would be to store the actor reference in a variable inside the player controller that owns this widget. Now on pressed button down event in your UMG, you could get your owning player controller, cast it to it's type & then retrieve the variable that you used for storing the actor. Using that reference, you could call your 'Down Button' event.
answered Feb 06 '16 at 04:10 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here