For some reason that function is const/pure, shouldn’t be. Looks like you’ll need to make a utility C++ function that calls it for now, as the BP graph will treat it as a pure getter with no execution pin. Will be callable in 4.8.
I’m just working on that. One of your client widget is focused, but it stay on behind of others. In poor words the problem is that the event begin play for some reason is called several time. Look this.
As you can see for one client will be spawned *N widget. N = Tot clients connected.
Bindings are meant to get values only, you shouldn’t attempt to perform actions that have side effects like that in them. SetKeyboardFocus is the function to set focus. I made a little test case that seems to work fine, when the button is clicked it focuses the text box.
Your example works for me too. So, how could I interject any step of showing the widget on screen, to make the inputbox get focus? Where should I put the SetKeyboardFocus, if not as a bind? If I try to use SetKeyboardFocus outside of the widget events editor, it wants a Target of type Text Input Reference. o-O Like this:
Just make a new function / event on your chat window that does all this work called ShowChat. Instead of relying on the visibility state of the widget make it an explicit action to show and dismiss the chat window.
i don’t like to make new post and increase forms so going to brig this form back ,
I have a problem which is i have a chat system for mp project , when i press T the text box get Focus with SetKeyboardFocus , i want to send the chat when i press enter key but its not working as i’m already in the text box and the key event will not work i think so how can i fix this problem pls ?