- Home /
How would I add multiple canvas UI in multiple scenes.
I have created a scene for menu and a scene for game over. In both scene i have button, the proble is that only Menu scene is working. Please help me to overcome from this problem. ,
On loading LoseMenu, button of Lose menu is not walt textorking
So you've put a "Menu" Prefab into your Lose "scene". But the buttons are not working for some reason.
How are they not working? Also is "Menu" a canvas or a panel?
Answer by lvskiprof · Mar 12, 2021 at 06:08 PM
I think you are seeing something I did myself. Buttons won't work without an EventSystem being present for the scene. Screenshot-6.png shows there is an EventSystem in that scene. Screenshot-7.png shows no EventSystem for that scene.
Keeping the buttons as a Prefab is nice, because they are consistently placed, etc. However, you have to add in the EventSystem to any scene you put them in manually. Ideally, Unity should recognize that is required when you add the prefab for something that will require it, but it does not.