Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit acb71e7

Browse files
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

Lines changed: 4 additions & 4 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /