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.

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.

Got it figured out. For whatever reason, you have to bring the player into the scene with DONOTDESTROYONLOAD and make sure you only have one player. I don’t know why it works, but it does. If anyone else has struggled with this, I hope this helps!!!