I’m attempting to paint several lines at different angles based on a previous input that can be changed either at runtime or prior. I have a while loop setup to iterate through the angles and stop when it’s reached 360 degrees.
Currently, whenever I have the While Loop connected to the function then compile, switching back to the Designer tab in UMG will cause the editor to drastically slow down and give me this error, infinitely:
After looking into some other possibilities, this might have something to do with On Paint being a const function, so I set all loop variables outside of it.
I don’t know if the reasoning is close to being correct, but I got around this issue by setting an integer outside of OnPaint and using a For loop, instead.