Dzuelu
(Dzuelu)
November 16, 2016, 8:00pm
1
To reproduce:
New UserWidget: MyButton
Set IsFocuseable to true
Delete Canvas Panel
Add button
Add text
Override OnFocusReceived
Call parent
Add print string "Button Focus Called"
New UserWidget: Frame
Add VerticalBox or HorizontalBox
Add MyButton 1 or more times
Add ScrollBox
Add MyButton 1 or more times
In Player Actor
OnBeginPlay
Create Widget Frame
Add to Viewport/PlayerScreen
Optional: Set Input UI Only
Set user focus to any button
Play the game
Use arrow keys to select widgets, widgets in scrollbox OnFocusReceived events are called while none are called in Vertical/Horizontal Box.
1 Like
I’m seeing the same thing, I’m on 4.14.1.
How do you override OnFocusReceived? I’m using 4.15 Preview 3 and looks like OnFocusReceived is not overrideable, while NativeOnFocusReceived is (but looks like it’s not correctly working…it just fires once, then never again).
Dzuelu
(Dzuelu)
February 3, 2017, 11:32pm
4
I’m currently using 4.14.3 so I would’t know about 4.15. It was just in the UMG blueprint functions under override, not in the code but in the editor.
VirtualNK
(Virtual)
October 24, 2017, 8:17am
5
I’m in 4.17.2 and I have the same thing, NativeOnFocusReceived is not being called.
kindamark
(kindamark)
January 7, 2019, 4:23pm
6
I’m in 4.21.1 now. Same problem