Scene…… couldn‘t be loaded because it has not been added to the build settings or the AssetBundle...

时间:2024-03-13 16:49:29

Scene ‘CarDemo(KeyboardInput)’ couldn’t be loaded because it has not been added to the build settings or the AssetBundle has not been loaded.解决方案

来到这里的你一定遇到了和我一样的问题:
Scene…… couldn‘t be loaded because it has not been added to the build settings or the AssetBundle...
导致这种问题的原因可能不一样,所以我的解决方案仅供借鉴:
打开File->Build Settings,在窗口上方加入你要加载的所有场景,并打勾:
Scene…… couldn‘t be loaded because it has not been added to the build settings or the AssetBundle...
然后问题就奇迹般地解决了!(暴露小白本性哈哈)