Advertisement
Hyluss

[Unity] view window current width & height

Apr 6th, 2020
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.10 KB | None | 0 0
  1.  string[] res = UnityStats.screenRes.Split('x');
  2.  Debug.Log(int.Parse(res[0]) + " " + int.Parse(res[1]));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement