Fun Tip for ToString

The Console can read RichText so you can color your debugs and also add this as a propery to the overriden ToString function within the GridPosition Struct:

image

This way you can be kind to your future self and make your coordinates easy to see in the console or just playfully colorful.

public override string ToString()
{
    return "<color=#00ff00>x: " + x + " z: " + y + "</color>";
}
4 Likes

Thanks!, that’s really useful.

Privacy & Terms