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"

Slider value does not save its position after exiting menu

I have a bunch of sliders for graphics/sound settings. I can click and drag to change the value and it changes accordingly but once I exit the menu and open it back up the sliders just go back to their default values.

I have a variable that should store the value that comes out of the 'on value changed' event and that's binded to the value under appearance in the slider settings. This doesn't seem to do anything.

The only way I can get the slider to remember the value is to have the variable that stores it on my character blueprint. Does it not remember the value after I remove it from parent? Should I store these values in game state or something so that the sliders remember them?

Product Version: UE 4.8
Tags:
more ▼

asked Jul 29 '15 at 12:20 AM in Blueprint Scripting

avatar image

KrunkFu
218 13 12 24

avatar image Narghile Jul 29 '15 at 07:51 AM

Hi Mate

Can you show you graph for the sliders?

You should store them in game state if you have multi levels, but if this is happening within the same level, then it should not change..

Narg

avatar image Narghile Jul 29 '15 at 08:08 AM
avatar image KrunkFu Jul 30 '15 at 11:28 PM

Here is the slider graph:alt text

When I posted this I was only concerned about the slider but when I did the combobox I noticed it didn't save the last selected value either. I was hoping to save them to a file that way the player could see what they had their settings set to. I think the graphics settings are set somewhere in an ini file and should be the same next time the game is loaded but there wasn't a way for the player to see what they had set them to.

The stuff in the other forum post deals with trying to save the selection of the combobox to file. I haven't tried doing that with the slider position yet since it doesn't work for the combobox.

slider.jpg (112.2 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I can get it to work if I bind its value to a variable that isnt stored in that widget. Here is an example of it working by binding it to a variable in the player controller. The same thing works if its in gamestate.![alt text][1]

A combobox doesnt have many bind options so I can't bind the last selected thing like I can with the slider and the "set selected option" on it doesnt seem to do anything. It defaults to low every time I open the options menu.

binding.jpg (82.3 kB)
binding.jpg (82.3 kB)
more ▼

answered Jul 30 '15 at 11:56 PM

avatar image

KrunkFu
218 13 12 24

(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