Unable to get name of current scene
Okay so i have two scene, sceneA and sceneB, both scenes are in a folder named Scenes, now both scenes have a script which is checking their name and printing it, both scenes has a button which is loading another scene but button of sceneA is loading sceneB with index (that is 1) and button of sceneB is loading sceneA with its string name (that is "Scenes/sceneA") ... now the problem is that if i m loading scenes with their index then i m getting just their name (like sceneA or sceneB), but if i m loading them with their name then i m getting their name with "Scenes/" prefixed (like Scenes/sceneA) ... What is this ?, why unity is not returning me just the name of scene ?
This is what i m currently using to get names and i m unable to get desired results
then give us some code ! do you think we are wizards?
Your answer
Follow this Question
Related Questions
Keeping track of the previous scene 1 Answer
Camera not rendering on UnloadSceneAsynch 0 Answers
Start function not called after reloading scene 0 Answers
Printing total time to open/loading a scene 0 Answers
Loading and Unloading scenes 2 Answers