I have a rather convoluted system of object destruction involving on-the-fly reparenting and rigidbodies creation/destruction, and I occasionally get following error when destroying objects:
Assertion failed on expression: gameObject.IsDestroying()’
As I understand there’s internal assertion call somewhere in Unity components, but there’s no stack trace on failed assertion so I can’t exactly understand what’s causing this. It seems like it’s raised on FixedUpdate after Update during which all destruction and creation took place - but that’s the extent of my attempts at isolating it.