[英]Getting "Assertion failed on expression" error when unloading scene in Unity?
Here are the errors I'm getting:以下是我得到的错误:
Assertion failed on expression: 'offsetIndex != -1'
Assertion failed on expression: 'offsetIndex != -1'UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&
I'm using SceneManager.UnloadSceneAsync then loading a scene right after.我正在使用 SceneManager.UnloadSceneAsync 然后立即加载场景。 This actually works perfectly, but it still throws these errors:( So it's very strange. Actually throws that second error 15 times.这实际上工作得很好,但它仍然会抛出这些错误:(所以这很奇怪。实际上抛出了第二个错误 15 次。
I'm using basically the same script as the SceneLoader in this example project from Unity: https://github.com/UnityTechnologies/open-project-1我在 Unity 的这个示例项目中使用与 SceneLoader 基本相同的脚本: https://github.com/UnityTechnologies/open-project-1
Has anybody run into this before?有没有人遇到过这个? I have no idea what to do.我不知道该怎么做。 Been very frustrating.非常沮丧。
I've had the same issue, it was caused by LightProbes.TetrahedralizeAsync()
, don't know why, but switching to LightProbes.Tetrahedralize()
fixed it.我有同样的问题,它是由LightProbes.TetrahedralizeAsync()
引起的,不知道为什么,但切换到LightProbes.Tetrahedralize()
修复了它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.