Not sure if I should post here, but figured since Toggles are part of the new UI…
So I have a quick question about toggles which I can’t seem to find an answer to.
I have a few toggle groups which save difficulty levels in PlayerPrefs, on Start() I look at the PlayerPrefs and set the .isOn for the toggle groups according to how they saved their preferences. Works like a charm.
Now, I have 4 separate toggles which are NOT in groups. There is a function that runs when the user toggles it. The .isOn in the inspector is unchecked but if the PlayerPref associated with it is true (and thus is checked while the game is running), then every time I run/load that scene, it changes .isOn to false (I’m assuming due to the .isOn in the inspector being unchecked.) Because it notices the change, the function under On Value Changed runs.
The opposite happens if .isOn in the inspector is checked…
Is there a way to make it so it doesn’t run the function under On Value Changed on load?
Thanks