Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Bug report Widget OnFocusReceived not called when in a Vertical/Horizontal Box

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

     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.
Product Version: UE 4.14
more ▼

asked Nov 16 '16 at 08:00 PM in Blueprint Scripting

avatar image

16 1 2

avatar image proguerammer Jan 10 '17 at 06:21 AM

I'm seeing the same thing, I'm on 4.14.1.

avatar image AXE Feb 02 '17 at 08:56 PM

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).

avatar image Dzuelu Feb 03 '17 at 11:32 PM

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.

avatar image virtual_nomak Oct 24 '17 at 08:17 AM

I'm in 4.17.2 and I have the same thing, NativeOnFocusReceived is not being called.

avatar image kindamark Jan 07 '19 at 04:23 PM

I'm in 4.21.1 now. Same problem

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question