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.

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 -

114554-checkbox.png

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.