Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
您好,我正在为学校项目制作游戏,但遇到了这个错误。
如您在此处看到的,代码加载了我已将其添加到构建设置中的场景。
请帮忙!
可能是一个小故障。有同样的问题并从构建管理器中删除了场景,再次添加它,一切都很好。
详细说明 Everts 在评论中所说的话:
地震狗不是地震狗
您很可能尝试通过执行以下操作来加载场景:
SceneManager.LoadScene("earthquake doge");
您应该使用场景资产特定的确切名称加载它
SceneManager.LoadScene("earthquakeDoge");