- Home /
Head Scratcher- Button works in the scene by itself, but not when loaded from another scene.
This could seem a little complex: I am trying to set up a way for the player to enter a house, an inn, a tavern, etc and come back to the main scene from the same place they left. The destination scene is 2D while the main scene is 3D. I am using a button in the destination scene simply titled Leave and a function called exit. The exit function simply loads the main scene again. Hope that make sense.
When the destination scene is loaded by itself, the exit button works fine. When the player goes from the main scene to the destination scene, the button will not work.
Answer by sharatachary · May 15 at 03:14 AM
Please check whether the destination scene has Event System in the hierarchy.
If not please add it by go to: 1. Unity Editor Menu > GameObject > UI > Event System 2. Right click in Hierarchy > Context Menu > UI > Event System
Hope this helps.
Your answer
