I am trying to make a transition sequence to go between an overworld map and a cave map. I am able to go from the overworld to the cave but not back. I am plugging in the same script for both object colliders and they have the same settings so I don’t understand the conflict. If any more images are needed for context I can post them.
Check you build settings to start with and ensure both scenes are set to build. I suspect only the one that does load is set to build. Other than that, check your scene name is exact. Failing that, try switching to the index instead and see if that works. However, I suspect it is the build settings.
Both my build settings and spellings are correct from what I see. What exactly is the index?
The index number if the index it has in the build order (so your first scene in the order is 0, second in 1, and so on). If it doesn’t load by that, you’ll probably need to do some debugging as probably the code isn’t being hit for some reason.
So do you get an error when you try to transition back?, does the trigger trigger when you step on it? Can be as simple as the player is not tagged as player, or the collider is a child and thus not tagged as player. First I would check if it triggers or not.
I think the player tag wasn’t maintained in the new scene despite being a part of the prefab.