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"

UMG Allow multiple button presses at the same time.

I'm currently working on a small mobile (Android) game with Blueprint. I started testing on the device, but it seams I'm not allowed to press multiple UMG buttons at the same time.

On the left side of the screen I have my various movement buttons, on the right side is a jump button. If I move and jump with keyboard input it all works fine. But using the UMG buttons it stops moving. I made the "pressed color" bright green and noticed it just turns off when I start pressing the jump button.

Is there any way to allow multiple button presses inside UMG, or am I approaching this the wrong way?

Product Version: Not Selected
Tags:
more ▼

asked Apr 24 '15 at 07:47 PM in Blueprint Scripting

avatar image

Roel
2.5k 70 43 143

avatar image Chris Babcock STAFF Apr 24 '15 at 09:48 PM

This should work. If you can give me more details (simple project or layout / BP screenshots) to look at, I can investigate this for you.

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

2 answers: sort voted first

This is by design. Buttons default to IsFocusable - true. Focused buttons that are pressed, when focus is lost, unpress. You need to mark both buttons as IsFocusable - false.

more ▼

answered Apr 28 '15 at 02:48 PM

avatar image

Nick Darnell ♦♦ STAFF
6k 77 37 151

avatar image Roel Apr 28 '15 at 03:36 PM

Makes sense from a Menu perspective. Thanks!

For people wondering where to find the options, when you click on the button, Look all the way at the bottom of the details panel in the interaction tab.

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

I made a simple android test in a separate project:

alt text

The ideas is simple. If you press the button on the left, the box on the left starts to rotate. If you press the button on the right, the right box will rotate. However, my setup shows it is not possible to rotate both boxes at the same time.

I'm probably not taking the correct approach. Here is the function it is calling inside my pawn script: alt text

It is called from within UMG based on if the button "left" or the button "right" are held down: alt text

This is easy testable on android. Below is the content package. Just assign the MyGameMode to the project game mode and it should work.

Content

contentumg.zip (125.6 kB)
ingame.jpg (31.0 kB)
pawn.jpg (83.7 kB)
widget.jpg (95.9 kB)
more ▼

answered Apr 25 '15 at 12:48 AM

avatar image

Roel
2.5k 70 43 143

avatar image Chris Babcock STAFF Apr 27 '15 at 10:02 PM

Thank you. We have reproduced the problem here and are investigating a fix.

(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