switch remember last state

hi… i need a help with audio.switch state…  how can i make a switch remember last state… everytime i change another scene then back to option scene it always back to first state… iam using checkbox. help me fix dis problem… ty

You need to use some sort of persistent data (i.e. writing the state to a file).  Then everytime you load the scene you check the file for the saved state.  I prefer to use GGData myself

Hi. Jon ty for reply. But. Could u give me a code… ty

Code for how to use ggdata with switch

You need to use some sort of persistent data (i.e. writing the state to a file).  Then everytime you load the scene you check the file for the saved state.  I prefer to use GGData myself

Hi. Jon ty for reply. But. Could u give me a code… ty

Code for how to use ggdata with switch