Question by
Relo999 · Jun 05, 2018 at 12:11 AM ·
controllersavingkeyscene-changescene load
How do you keep keystates between scenes?
How can I keep keystates between scenes, as unity doesn't maintain them when switching scenes.
Comment
Answer by tormentoarmagedoom · Jun 06, 2018 at 10:34 AM
Good day.
What you mean with keystates? know if the player is pressing a button?
If you want to keep that information, you need to create some bool variables in a DontDestroyOnLoad script, and load them again once the new level is loaded.
Bye.
Your answer
Follow this Question
Related Questions
[Unity Beginner] Game design question on scene loading and scene transitioning 0 Answers
PreloadData is missing. It should always be there. 1 Answer
How to save a scene exactly as it is ? 1 Answer
How to make a main menu that will let the player choose a scene and deactivate the other 0 Answers
Game Over Scene Restart Button 0 Answers