Download

Function to disable infinite loop detection, for example for long duration dynamic level generation

Function to disable infinite loop detection, for example for long duration dynamic level generation:

Looping over large arrays of construct object / spawn object from class results in false infinite loop.
Another option would be to provide a pulse function notify the engine the processing is still alive.

You can disable infinite loop detection in the editor settings or project settings.

What is the setting called or how can you disable it?

This should be located in the project settings, search for “maximum loop iteration count.” Alternatively, once in the project settings, the path is general settings>blueprints>baximum loop iteration count.

I hope this helps!

Thanks Sam, that’s exactly it. The magic is to set the number to 0 for unlimited loops.