https://issuetracker.unity3d.com/issues/editor-crashes-in-mono-object-isinst-while-in-play-mode
Unity Issue Tracker - Editor crashes when calling DestroyImmediate(gameObject) in Awake during clone
It seems that crash is caused by Invoke method being called multiple times in a for loop. To reproduce: 1. Open the project, attache...
https://docs.unity3d.com/2022.3/Documentation/ScriptReference/Object.DestroyImmediate.html
Unity - Scripting API: Object.DestroyImmediate
scripting apiunityobject