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 Slider soft Snapping (BP)

Hi there,

Does anybody have any tips on Slider snapping in the UMG? I have seen BP examples of snapping to a position on a slider, however I am wondering how I would go about making these snaps snap into position with some tweaning or a proximity snap that doesn't just jump instantly into position?

Basically I'm looking to improve the look and functionality of dragged/touch snapping so it does't feel so robotic.

Many thanks,


Product Version: UE 4.16
more ▼

asked Nov 17 '17 at 03:59 PM in Blueprint Scripting

avatar image

6 2 5 6

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

1 answer: sort voted first

As you said, snapping to a fixed position is easy, and can be made to work with mouse, touch or keyboard :

alt text


Snapping with keyboard or tap + interpolation is also pretty trivial:


Now, snapping with a mouse drag/touch + interpolation is an order of magnitude more complicated all of a sudden because you're constantly overriding the value of the slider while the interpolation is trying to do its magic. That's how the slider works, unfortunately.

I believe it would be easier to write your own slider rather than trying to wrestle with the existing one. 2 images placed in a canvas should do the trick.

  • you'd want to set it up in such a way, that you actually do not drag the handle at all but create a consecutive snapping point based on the mouse movement direction and mouse position within the widget

  • mouse position within the widget (SnappedToGrid) can be obtained by converting absolute mouse position to local widget geometry

  • "drag" direction can be extracted from mouse delta

It should/could work, is untested but might be worth exploring.

If I ever figure out an easy way to do it, I'll try to post it here. Or perhaps someone else will beat me to it.

capture.png (82.6 kB)
more ▼

answered Nov 18 '17 at 02:04 AM

avatar image

15.3k 77 26 62

(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