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"

slider bar value


I wounder if there's a way/ function to determine if the current slider value from object class is increasing towards 1,0 or decreasing towards 0,0? What I've tried so far, but feels very inefficient, is to:

  1. Set float var "CurrentSliderValue" from slider event "OnValueChanged".

  2. Use a delay node with e.i. 0,5s to then get the "CurrentSliderValue" and set "PreviousSliderValue".

  3. Check if "CurrentSliderValue" > "PreviousSliderValue"

  4. Set a bool "isSliderIncreasing" If true- Slider is increasing If false- Slider is decreasing

The flow after is getting Static Meshes and changing its dynamic material's opacity value on event "OnValueChanged". The problem is not really changing the material's opacity, but getting the right static mesh, depending on increased or decreased slider value. As for now it is setup with a branch node determined by the bool "isSliderIncreasing".

Feels like am getting unwanted results of getting static meshes when using "OnValueChanged" with a delay node and branching flow with a bool. I've tried using the "SelectObject" node which uses a bool input, but feels unwanted results also arises. Could it be the delay node?

So woundering if there is a function or some workflow to simply determine increased or decreased slider value on event "OnValueChanged"?.

Thanks alot!

Product Version: UE 4.21
more ▼

asked Apr 15 '19 at 06:31 PM in Blueprint Scripting

avatar image

1 2 4

avatar image Kidox18 Apr 23 '19 at 05:38 PM

Tried to use node "Get World Delta Seconds" on the delay node and it seem to update pretty good. But you probably want to keep it within a function. alt text

slidervalue.jpg (135.7 kB)
(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