Unity is crashing for some reason

It happens right after saving the Coordinate Labeler script when doing ColorCoordinates(). I removed the code and everything worked fine and on redoing the same ColorCoordinates(), it crashed again.

Hi Mohammad,

Usually, if Unity crashes, there is an endless loop somewhere. Have you already compared your code to the Lecture Project Changes which can be found in the Resources of this lecture?

1 Like

Hey mate, I was having the same problem and it took me a while to work out. In my Waypoint.cs script I had a capital “I” in “return IsPlaceable”, so it was trying to return itself.

It needs to look like this:
public bool IsPlaceable { get { return isPlaceable; } }

Not like this:
public bool IsPlaceable { get { return IsPlaceable; } }

5 Likes

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

Privacy & Terms