I have 2 nested loops, each has 9 or 10 foreach loops and if statements nested. When I try to play in editor, I get an error message that says "Fatal error! Could not allocate memory : System out of memory". I'm developing for mobile. What I have in my scene is just a few spheres and blocks. Nothing fancy to crash Unity. I think it's that nested loops that cause the problem. Do you know what may cause fatal error or did you have trouble using bunch of nested loops in Unity before?
↧