#How do i Save bools from a scene to another in Unity

1 messages · Page 1 of 1 (latest)

sage tinsel
#

Use EditorPrefs or DontDestoyOnLoad

fierce roost
#
  1. save bool to as playerprefs int (0 = false, 1 = true)
  2. load scene
  3. on scene start load the playerpref (make sure 2 convert from int to bool)
stiff osprey
#

That seems like a lot for one bool

#

I'd just use DontDestroyOnload like Mikkel suggested. Most "manager" sort of scripts use DontDestroyOnLoad so the bool could be put in one of those anyways

sage tinsel
#

funny enough saving it as a PlayerPref variable might be less "intensive" but in general that does not matter at a indie level