Quantcast
Channel: Questions in topic: "playerprefs"
Viewing all articles
Browse latest Browse all 1333

How Can I save my values with Toggles in UI canvas 4.6 through scenes?

$
0
0
Hello community. I want to save my values of Toggles when they're true or false. But there's no PlayerPrefs.GetBool, soo how can I do it to save it through scenes when it's set on the option scene? I've searched around but I haven't discovered the right method. I'm using differents functions to manage Toggles. Right now I've two. One for enable/disable keyboard and other for accelerometer. void update() { OptionKeyboard() OptionAccelerometer() } public void OptionKeyboard() { // Keyboard movement, etc } public void OptionAccelerometer() { // Accelerometer movement, etc } Those two functions checks if "Toggle.isOn = true or false" How can I store it through scenes? Thanks for the help. Regards.

Viewing all articles
Browse latest Browse all 1333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>