Memory leak?

Hi!
I was doing the course “Unity Turn Based Strategy - Intermediate C# Coding” and when i got to the “Grid System” video, y got stuck, when i try to add the “testing item” with the “testing” script, and hit play. Mi Unity keeps loading, and if i open the resource monitor, y see how it keep cosuming more and more memory, until, if i dont stop it, makes my pc crash… I’ve make sure that the code is the same as the video… Do any of you have any idea why is this happening? in the video it all goes perfectly…


image

Welcome to the community, @Saul_Rodriguez_Lopez

It’s because your code is not the same as the video. Your z loop never ends, because your ‘end condition’ looks at x
image

1 Like

oh, crap -.-.
thank you so much

It’s my pleasure

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms