Question by
TimTheEngineer · Feb 26, 2018 at 10:11 AM ·
scenescene-loadingscene-switching
"Scene Scene1 couldn't be loaded because it has not been added to the Build Settings or the AssetBundle has not been loaded" but is in the Build settings
I'm trying to load a scene, here is the code snippet:
// Loading scene
SceneManager.LoadScene("Scene1", LoadSceneMode.Single);
It is the exact name, the scene is in the Build settings but unity doesn't want to load it. What could be the problem here and do I have to provide more information?
Comment
Are you sure the name is exactly "Scene1"? Sometimes, you can have invisible characters (because of bad copy-paste for example).
Rename your unity scene, delete and rewrite the string in your code.
Your answer
![](https://koobas.hobune.stream/wayback/20220612153450im_/https://answers.unity.com/themes/thub/images/avi.jpg)