Advertisement
Guest User

Untitled

a guest
Dec 11th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.25 KB | None | 0 0
  1.  float aspect = ((float)Screen.currentResolution.width / (float)Screen.currentResolution.height);
  2.  
  3.         // Fix 18:9 screen
  4.         if (aspect <= 0.53)
  5.         {
  6.             this.transform.localScale = new Vector3(0.85f, 0.85f, 0.85f);
  7.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement