x

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"

Widget interaction component issues android

Hi!

I am having issues with the new widget interaction component on android. I making a 2d game that has clickable buttons in the world. I am using the setup below together with a standard 3d widget that has a button and it works as expected on desktop.

On android however I always need to double tap buttons for a click to happen, the first click always makes the button "hovered" but never triggers the click. The button will be "hovered" until you click somewhere else or tap said button again, which then fires the click event on the widget.

I have used the setup bellow and many different variations of it(touches etc) but it always seem to work like this. Is there something I have missed or is there a bug in the new widget interaction component? Can I turn off hover functionality all together for buttons on device? (Its not really possible to hover with finger anyways).

alt text

Product Version: UE 4.13
Tags:
more ▼

asked Sep 19 '16 at 11:51 AM in Blueprint Scripting

avatar image

Postalh
66 3 8 10

avatar image AnTi_MTtr Sep 20 '16 at 11:15 PM

I am experiencing this on PC platform aswell, have tried:

             WidgetInteractor->PressPointerKey(EKeys::LeftMouseButton);
         and

` /WidgetInteractor->PressAndReleaseKey(EKeys::LeftMouseButton);

avatar image Stealforge Oct 06 '16 at 09:59 AM

Have you found a solution to this?

avatar image Postalh Oct 06 '16 at 10:29 AM

I found a workaround. I check what platform we are running on when the hover event is fired in the widget. If we are on mobile, I manually execute my click function. It gives the behaviour I want, but It's definitely a work-around.

avatar image Stealforge Oct 06 '16 at 10:37 AM

Alright. Thanks

(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