- Home /
Canvas gets invisble after changing scene
Hello, I have a "Casual Ball" Game with 2 scenes, once the Menu and the Game. So if I start the Game in the Game Scene I have a Pause Button in the top right corner, the Button is in a UI canvas. But if I start the Game in the "Menu Scene" and I hit the play button it gets me to the "Game Scene" and I can play but the Pause Button isn't there, the whole canvas isn't in the Hierarchy. The same the other way around (little different), if I am in the "Game Scene" and hit the Pause button and then the Menu button, I get to the "Menu Scene" but there I have to set the Buttons inside the canvas to visible.
I hope you can understand it my english isnt the best.
Answer by utzsar · Feb 16, 2020 at 04:35 PM
It sounds like you might have scripts on your canvas objects that are messing with each other, something like a single instance script that's killing the other one depending on which scene you start in. Should be an easy fix but I would have to see what scripts you've got applying to those objects to say what's goings on exactly.