- Home /
Multiple EvenetSystems in Scene - only have 1 after searching though
So i changed a scene and carried my GameManager object over using dontDestroyOnLoad which i assume had an extra EventSystem, it stopped my UI from working in the new scene. So i tried deleting the EventSystem from the new scene but my UI still wouldn't work. So i added back my EventSystem for the scene and then deleted the GameManager that i carried over since i don't need it after obtaining the initial info i carried it over for.
My UI still doesn't work after changing the scene, even though i delete the extra EventSystem, is there a way to fix this somehow? looking for any options, i've been searching for the same problem from other users but nothing has worked. https://answers.unity.com/questions/853655/canvas-buttons-not-working-after-levelload.html https://answers.unity.com/questions/913093/ui-buttons-stop-working-after-i-load-another-scene.html
From what i can see it's definitely something to do with the DontDestroyOnLoad, even though im deleting it after it gets transferred, my UI doesn't work, any help is appreciated.
Answer by CraigGraff · Apr 15, 2018 at 05:35 PM
You don't want to delete the EventSystem at runtime. Instead, try removing the extra EventSystem objects in your subsequent scenes (like you did at first, but not in play mode), and have the EventSystem from the original scene part of DontDestroyOnLoad.
Thank you so much! This little thing was annoying me for ages and stopping me progressing! You're a life saver, thanks!
Your answer
Follow this Question
Related Questions
UI canvas or panel that only appears once per game session? 1 Answer
Transition between levels using 2d colider works once but not repeatidly. 1 Answer
Execution order of Destroy() and DontDestroyOnLoad() between Scenes 0 Answers
Main Menu Canvas and SetActive 1 Answer
How do I call an DontDestroyOnLoad function on UI text 2 Answers