Hello GameDev ladies and gentlemen. Hope you’re all good.
I took some time off the course, but on resuming it, powered up Unity Hub and it asked me to update Unity, which I did (to Version 2019.1.2f1). Now I get these “somewhat nugging” errors in the console every time I switch scenes in the editor.
Destroy may not be called from edit mode! Use DestroyImmediate instead.
Also think twice if you really want to destroy something in edit mode. Since this will destroy objects permanently.
Any one has a slight idea of how to go about fixing this error? Tried googling around but the options I see for using DestroyImmediate() are applicable to custom project scripts, and this looks like a UnityEngine script warning.
Note: Same error is repeated thrice for each scene change.