Hello, I enrolled in Unreal Engine 5 C++ Developer: Learn C++ & Make Video Games course couple days ago and things were going well. Today I was practicing by myself and I thought about creating a platform which draws circles. When I tried to do that I added a for loop and clicked to play button, UE5 didn’t repy at all and freezed. What is wrong? I think my loop is not having any mistakes. My .h and .cpp codes are down below. Thanks.
You have an infinite loop as your condition for it is just 10 which will be converted to bool; non-zero values will be converted to true so you loop endlessly. You should have counter < 10 there.