понедельник, 28 декабря 2015 г.

Debugging grid placement and blueprint checking

When I tried to find blueprints in new system, nothing found.

Then, after some digging, I revived old debugging system for showing current grid composition.

One interesting thing about Unity color, though.

If you want to use color in range 0..255, you should use Color32 instead.

When I tested my code with basic color it shows values for rgba (25043) e.t.c. This is very frustrating, but after some search all stand still and perfectly visible.

Investigation of code  found, that I use (row,col) in grid and (col,row) in blueprints. So frustrating to know, that simply inconsistency can take so much time to figure out.