Skip to content

Commit

Permalink
Fix the FPS indicator position to avoid the new stock toolbar.
Browse files Browse the repository at this point in the history
  • Loading branch information
angavrilov committed Aug 22, 2014
1 parent 71d54c6 commit 8910aa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Misc/FPS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ public void OnGUI()
{
if (style == null)
{
pos = new Rect(Screen.width - 60, 0, 50, 60);
pos = new Rect(Screen.width - 60, 39, 50, 60);

style = new GUIStyle(GUI.skin.label);
style.alignment = TextAnchor.UpperRight;
style.normal.textColor = new Color(0.7f, 0.7f, 0.7f, 0.5f);
style.normal.textColor = new Color(0.8f, 0.8f, 0.8f, 0.6f);
}

GUI.Label(pos, fps, style);
Expand Down

0 comments on commit 8910aa7

Please # to comment.