hello everyone,
i’m new to ue5 and to teach myself i decided to make a game with blueprint. I wanted to make a randomly generated map composed mainly of cubes (yes, I was inspired by minecraft XD). I manage to spawn my cubes on a 20x20 map for example, however, if I try to spawn more than 41665 cubes, I get an error when I launch the game, telling me that it there is an infinite loop while I only use “for each loop” to avoid this problem. Can someone explain me this problem ? I also tried to duplicate my code to make the cubes appear in 2 times (2x 41665 cubes), telling myself that I had certainly reached the limit of “for each loop” but I have the impression that it’s even worse.
thank you in advance for your answer