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, How to bind a value to a slider?

Hello,

I could use some help with the slider feature in UMG. I would like to give the player the option to change mouse sensitivity. I have my float ready but I'm not sure how to tie the value to the position of the slider. Any help on this concept is appreciated.

Thank you.

Hi Nick Darnell :)

Product Version: Not Selected
Tags:
more ▼

asked Aug 22 '14 at 02:18 PM in Using UE4

avatar image

Isaac Nichols
373 24 23 30

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

1 answer: sort voted first

Slider have OnValueChanged event, you can set mouse sensitivity on that event

https://docs.unrealengine.com/latest/INT/API/Runtime/UMG/Components/USlider/OnValueChanged/index.html

It's a delegate event, which means insted of being overriding function (being just a event in single class in case of blueprint), it assign diffrent functions/"custom events" to be called on event and can be assigned outside of original class. To bind delegate in blueprint, you create custom event and connect it to "bind to event..." node with this red squere pin, you can find them in "Assign Event Dispacher"

more ▼

answered Aug 22 '14 at 04:10 PM

avatar image

Shadowriver
37.8k 937 172 1123

avatar image Isaac Nichols Aug 22 '14 at 05:02 PM

Thanks for responding Shadowriver.

Delegates are new to me so I'm not exactly sure how to utilize them. This is what I have so far.

alt textalt text

The OnValueChanged Event, I'm not sure what drives this event to execute. Should this event be in the player controller or is it's value directly associated with the mouse speed?

Thanks!

eventgraph.png (255.8 kB)
slider.png (198.9 kB)
avatar image Shadowriver Aug 22 '14 at 05:15 PM

You need to bind event first, right now you binding on that custom event.... which is not binded and never will be called or binded. You need to bind it on blueprint initiation

avatar image Isaac Nichols Aug 23 '14 at 07:14 PM

Hi Shadowriver, I kind of got it working. I will just need to do more research. Thanks for pointing me in the right direction. :)

(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