I’m trying to retrieve the Unity Editor resolution in C# and store it in a variable (such as EditorRes), as shown in the image below:
Thanks!
I’m trying to retrieve the Unity Editor resolution in C# and store it in a variable (such as EditorRes), as shown in the image below:
Thanks!
Use Screen.Width and Screen.Height , you can use a Vector2 to store them