Assertion failed: Assertion failed on expression: 'pred(* previous, *i)'

Assertion failed: Assertion failed on expression: 'pred(* previous, *i)'
UnityEngine.Object:Instantiate(GameObject)
IdleLogic:OnLoadCompleted(Object, Object) (at Assets/BLAZGame/Script/GameScript/Idle/IdleLogic.cs:149)
c__Iterator2:MoveNext() (at Assets/BLAZ/Script/Function/AssetBundleManager/BaseLoader.cs:192)
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

 

一个断言错误,虽然不影响项目运行,但看着实在难受。

报错时机:游戏运行时加载其中一个游戏资源,发现报上面的错误。

定位到了这个资源

然后把资源各个层级依次点一遍,断言错误就消失了

猜测

应该是编辑器Inspector的一个错误,因为之前在项目里对编辑器进行过开发。

你可能感兴趣的:(unity编辑器,U3D问题,Unity,报错)