Why do these two Facebutton Left Nodes / Events act differently when passing through a switch on Enum?

I don’t know how I come up with these insurmountable situations all the time. But here I am again, maybe it is like Samson bringing you a riddle.

Here is the situation…In a character select widget…when pressing left face button to actually choose 1 of 3 characters (whiteman 000, blueman 001, redman 992) there is a switch on enum that makes this possible.


Image2

One of these is the “out of the box” solution for gamepad face button left. The other is a custom event I created, coming in from a dummy character bp that is spawned into the map from the gamemode.

Here is the thing, you can put print strings all the way down the line and prove that custom event is firing. Yet, for reasons I do not understand…when it hits that first switch on Enum, it ALWAYS chooses the first character.

When I use the typical gamepad face button left, it works.

Enum not being set you say? But I assure you if it was not, the character select would not work at all, in this video I demonstrate that it does.

So…what the hell is going on here? Thanks!

pUmB

Is was very strange, but what it seemed to come down to was it was not getting a good reference to the character select widget. I would notice other things like not being able to trigger events in that widget. The character select widget was created from a dummy actor bp dragged into the level. So what had to happen here was I had to first get a ref to that dummy bp, and THEN from that get a ref to that character select widget made directly inside that dummy bp (off of create widget). Else I was not getting that exact widget apparently.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.