Skip to content

Commit acb71e7

Browse files
authored
Update GameViewGridOverlay.cs
1 parent 437db63 commit acb71e7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Assets/Scripts/Editor/Tools/GameViewGridOverlay.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ private void OnGUI()
2626
Color oldColor = GUI.color;
2727
GUI.color = gridColor;
2828

29-
// Horizontal lines
30-
for (int y = startOffsetX; y < Screen.height; y += gridSpacingY)
29+
// vertical lines
30+
for (int y = startOffsetY; y < Screen.height; y += gridSpacingY)
3131
{
3232
GUI.DrawTexture(new Rect(0, y, Screen.width, 1), Texture2D.whiteTexture);
3333
}
3434

35-
// Vertical lines
36-
for (int x = startOffsetY; x < Screen.width; x += gridSpacingX)
35+
// horizontal lines
36+
for (int x = startOffsetX; x < Screen.width; x += gridSpacingX)
3737
{
3838
GUI.DrawTexture(new Rect(x, 0, 1, Screen.height), Texture2D.whiteTexture);
3939
}

0 commit comments

Comments
 (0)