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"

3D widget buttons don't register click with "Down and Up" click method

I am working on a VR game and have a bunch of 3D widgets with buttons in them. They are set up the following way:

setup of button widget

Gamepad/Keyboard input works fine, mouse input is using a WidgetInteractionComponent. What I notice is that the OnClicked event never triggers unless the Click Method is set to "Mouse Down" and/or the button is focusable. Stepping through the code, I noticed that the SButton receives the Release event but drops it, which I believe is due to a check of the screen position instead of casting in 3D space - SButton.cpp from line 262:

 bool bEventOverButton = IsHovered();
 if (!bEventOverButton && MouseEvent.IsTouchEvent())
     bEventOverButton = MyGeometry.IsUnderLocation(MouseEvent.GetScreenSpacePosition());

I believe this should do a 3D check instead, if the widget is under a widget component!

Product Version: UE 4.16
more ▼

asked Jun 13 '17 at 09:16 AM in Bug Reports

avatar image

Till Riemer
1 2 5

avatar image Rudy Q ♦♦ STAFF Jun 14 '17 at 06:22 PM

Hello Till Riemer,

I was unable to reproduce this issue on our end. I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

  1. Can you reproduce this issue in a clean project?

  2. If so, could you provide a detailed list of steps to reproduce this issue on our end?

  3. Could you provide screen shots of any settings/blueprints/widgets that may be involved?

  4. Are you calling the "Release Pointer Key" node for the widget interaction component after you call the "Press Pointer Key" node?

Note: That if you are not calling the release, then the "up" portion of the "Down and Up" method is never triggered.

avatar image Till Riemer Jun 15 '17 at 02:06 PM

Hi! Yes, the "Release Pointer Key" node is being called, and it definitely finds the correct widget to send the event to (I stepped through the code). Will try to reproduce this in a fresh project later.

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

1 answer: sort voted first

Hello Till Riemer,

I know that you were trying to reproduce this issue in a clean project, however we have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will follow up.


more ▼

answered Jun 20 '17 at 02:30 PM

avatar image

Rudy Q ♦♦ STAFF
47.4k 545 132 524

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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