I get no errors in the console and theres not much else code wise to share. The variable brightness_setting shows its being changed in the inspector but just doesnt seem to save the value properly
this
brightness_setting = PlayerPrefs.GetFloat(“brightness_setting”, 0.5f);
is wrong
brightness_setting = PlayerPrefs.GetFloat(“brightness_setting”);
is what you need
Did you ever store something besides a float in that “brightness_setting” field, like maybe an int? Try doing PlayerPrefs.DeleteKey( “brightness_setting”); and then write it again with PlayerPrefs.SetFloat()…
As requested, show your code, in particular where you declare the variable brightness_setting. Also, try hard coding a float value instead of using the variable.