IsPlaceable method crashed unity, stackoverflow error

if anyone else has the same problem please use the get setter method see below; Also I had go into the TMP child within the Prefab of the grass and road tiles and switch the isPlaceable to the respected true false checks.

WayPoint Script
public bool IsPlaceable

{

    get { return isPlaceable; }

    set { isPlaceable = value; }

}

CoordinateLabel Script

void ColorCoordinates()

    {

      if(isPlaceable)

      {

        label.color = defaultColor;

      }  

      else

      {

        label.color = blockedColor;

      }

    }
1 Like

Privacy & Terms