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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How to scroll inside UMG ScrollBox on mobile?

Hi there,

so I have a UMG ScrollBox with multiple buttons in it and it works fine. Using a mouse wheel, I can scroll inside the ScrollBox without using the scroll bar on the right side.

On touch devices (in my Android build) I obviously have no mouse wheel so the only way to scroll is to use the scroll bar but it is quite hard to hit the scroll bar with the finger. I don't want to set the thickness to, say, 30.0 because it doesn't look good. I actually wanted to hide the scroll bar...

My question is if I can scroll on a touch device like if I had a mouse wheel. Maybe by detecting if I touch-and-swipe in the region of the ScrollBox or something like that?

Thanks

Product Version: Not Selected
Tags:
more ▼

asked Mar 31 '15 at 11:12 PM in Using UE4

avatar image

trutty
541 29 33 181

avatar image trutty Apr 08 '15 at 11:28 PM

So I could use buttons and work with the SetScrollOffset blueprint node but isn't there a way to do this with a touch / swipe gesture?

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

2 answers: sort voted first

So I now created UMG buttons to scroll up and down and set the Scroll Bar visibility to hidden. There were multiple issues because as of now there are no get nodes for the maximum scroll offset or the scroll box height (see this forum thread). This is not an acutal solution but at least it works.

more ▼

answered Apr 13 '15 at 02:30 PM

avatar image

trutty
541 29 33 181

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

There's a workaround by adding a button and setting the button's click method to "precise touch". Then even once you hid the button, you could scroll the content with just a left click or a single touch for mobile.

more ▼

answered Oct 31 '16 at 05:33 PM

avatar image

Divo
202 10 19 18

avatar image 旖旎的鱼 Mar 08 '18 at 01:01 PM

It works well!

avatar image Nebula Games Inc Apr 23 '18 at 10:16 PM

Divo is correct, you can do this by setting "precise click/precise touch". I made a tutorial going over this for people who are more visual learners!

https://youtu.be/VjbKxouRQYs

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

if your scrollbox have button as child,you must set zhe button's click method to "precise click" ,touch method to "Precise tap" and press method to "button release"

more ▼

answered Nov 01 '18 at 12:51 PM

avatar image

莫名追求
1

(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