- Home /
Question by
FiliBu5ter · Nov 11, 2016 at 08:31 AM ·
variablesscriptableobjectscene-switchingdontdestroyonloadscene change
Keeping variables between scenes with scriptable objects?
I need to keep variables (Either Bools or Ints) from one scene to another(Menu to different levels) and I'm wondering if scriptable objects can be used for that purpose, since they don't have to be attached to anything and if they can, is it a better alternative than attaching a script with the variables to an empty object and using Object.DontDestroyOnLoad.
Comment
Your answer
Follow this Question
Related Questions
Question Regarding Don'tDestroyOnLoad Object 1 Answer
,Enums not being passed between scripts properly 1 Answer
Unity build crash after scene load 0 Answers
Can't call script from another scene using DONTDESTROYONLOAD(). 3 Answers
new SceneManager (Unity 5.4.2f2 or newer) events. When do they fire in the event execution order? 1 Answer