Engine crashes when stop simulating while a dynamic material instance is being set to a sprite component

For those who don’t want to have to touch anything in C++, the solution is quite quick and practical. Include a hotkey in the project (it can be ESC) and make a call to the QUIT GAME event. It works perfectly and doesn’t crash. It’s just as fast as stopping the simulation, at most it takes a few milliseconds longer.

3 Likes