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"

How can I save value of checkbox ?

I want to save and load value of checkbox. What should I do ? I need help. Whenever I restart game Checkbox value become default.

Product Version: UE 4.11
Tags:
more ▼

asked Nov 11 '16 at 12:18 PM in Blueprint Scripting

avatar image

Hasanmirza
11 1 3 2

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

2 answers: sort voted first

A checkbox has checked state and those state value can be stored to boolean. And booleans can be easily saved.

What you want to do is make a boolean say in your player class, and go to your checkbox and when its state is "checked" you will set the boolean to true and save that boolean and vice-versa. And also, you are going to bind your checkbox value with that boolean value, so that it shows the last saved state. Like this -

alt text

checkbox.png (11.4 kB)
more ▼

answered Nov 11 '16 at 12:45 PM

avatar image

SHOBBIT
650 13 13 28

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

I'm trying to save my checkbox value (its for a light switch) and I don't know how. Could you explain it more detailed? Thank you so much.

more ▼

answered Nov 26 '18 at 08:14 PM

avatar image

baronharkonnen
1 1

(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