繁体   English   中英

在 Unity 中卸载场景时出现“表达式断言失败”错误?

[英]Getting "Assertion failed on expression" error when unloading scene in Unity?

以下是我得到的错误:

Assertion failed on expression: 'offsetIndex != -1'


Assertion failed on expression: 'offsetIndex != -1'UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&

我正在使用 SceneManager.UnloadSceneAsync 然后立即加载场景。 这实际上工作得很好,但它仍然会抛出这些错误:(所以这很奇怪。实际上抛出了第二个错误 15 次。

我在 Unity 的这个示例项目中使用与 SceneLoader 基本相同的脚本: https://github.com/UnityTechnologies/open-project-1

有没有人遇到过这个? 我不知道该怎么做。 非常沮丧。

我有同样的问题,它是由LightProbes.TetrahedralizeAsync()引起的,不知道为什么,但切换到LightProbes.Tetrahedralize()修复了它。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM