简体   繁体   English

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

[英]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.

相关问题 Unity 错误:表达式断言失败:'std::abs(det) > FLT_MIN' UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) 碰撞太猛时 - Unity Error: Assertion failed on expression: 'std::abs(det) > FLT_MIN' UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) when colliding too hard 在 Unity 上安装 Firebase 时,出现错误“卸载损坏的程序集” - When installing Firebase on Unity, I get an error "Unloading broken assembly" 表达式断言失败go isactive()&& go gettag()!= 0统一 - assertion failed on expression go isactive () && go gettag () != 0 unity 当场景重新加载时音乐不会停止 - Music is not getting stop when scene reload in unity “断言失败。” 退出程序时出错 (HDF5 1.8.6) - “Assertion failed!” error when exiting program (HDF5 1.8.6) Quaternion.Lerp function 给出错误; 表达式断言失败:',CompareApproximately(aScalar.0.0F)' - Quaternion.Lerp function gives error; Assertion failed on expression: '!CompareApproximately(aScalar, 0.0F)' 尝试在场景中移动 1000 个以上的刚体时,在统一中遇到非常糟糕的前置问题 - getting really bad prefomace issue in unity when trying to move more then 1000 rigidbodies in the scene 在Unity中调用方法时出错 - Getting an error when calling a method in Unity Unity 5.2编译错误“断言……未满足” - Unity 5.2 compile error “Assertion … not met” Photon/Unity - 尝试退出游戏场景进入菜单场景时遇到错误 - Photon/Unity - Attempting to exit the game scene into the menu scene hits an error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM