SceneManager.GetSceneByName() does not work with full scene path.
Here’s my test code:
Looks like a bug to me. File it!
Is there any place to see the fix progress of this bug?
To send a bug report, open Unity and in the help menu → “report a bug”
Anyway I would suggest to look for a workaround, it may take sometime to get resolve in any case.
Maybe you can use the “SceneManager.GetSceneByPath()” instead of “SceneManager.GetSceneByName()” that works as expected:
SceneManager.GetSceneByPath("Assets/_TEST_/Scene1.unity");
Remember that if you use test code inside a scene ensure that is a scene that is correctly loaded and not a temp scene (It may interfere).
Thank you! I’ll try it.