Question by
AndrewBilotti · Jan 13, 2016 at 12:55 PM ·
booleanscenesboolpublic
Find bool in multiple scenes?
Hi, Im Andrew, and I am developing a game. I am at the settings part, included in the menu scene, and I want to find if a boolean is true in the level1, but the bool is declared a public boolean in a script in the menu scene. Please help!
Comment
Simply not possible directly.
$$anonymous$$ultiple solutions :
$$anonymous$$eep an object through your scenes containing params (use DontDestroyOnLoad)
Write and reads into / from a text file for example
Use PlayerPrefs
Your answer
Follow this Question
Related Questions
Cannot get boolean to log correctly 0 Answers
Changing eye texture using bools 0 Answers
How do I check if bool is true from another script? 2 Answers
checking a bool via string 0 Answers
Check a bool from a prefab? 0 Answers