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"

How to store variable bound to slider's value?

Hello, this is my first question here. Greetings to you all.

I have a full working slider that sets screen percentage. Ex: The initial value of slider is 0, I put in value 0.5, then screen percentage is 50%, and value 1, screen percentage is 100%. If I set the value 1, and leave the menu by quitting the game or even going back to previous menu, the screen percentage remains 100% as expected, but the slider goes back to initial value 0. I know that this happens because the default value of the variable "Slidervaer", that is bound to slider value, is 0, then it changes when i move the slider, and works well. So, what to do now?

First image shows the blueprint Second image shows the slider in canvas panel alt text alt text

Product Version: UE 4.8
sem título.png (315.8 kB)
sem título2.png (228.9 kB)
more ▼

asked Aug 21 '15 at 02:23 PM in Blueprint Scripting

avatar image

3 1 1 2

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

1 answer: sort voted first

i store mines in a GameInstace class, and then i just call them on the binding,

Create a Gameinstance class->declare variables in it-> call them on the widget.

GameInstance objects remains constant even between loads.

more ▼

answered Aug 21 '15 at 04:48 PM

avatar image

72 9 9 12

avatar image Herbert_Richards Aug 22 '15 at 12:30 AM

Thanks! It works!

(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