Utility/ResolutionUtility.cs
@@ -1,12 +1,14 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Diagnostics; public class ResolutionUtility { public static readonly Vector2 originalResolution = new Vector2(Screen.width, Screen.height); public static Vector2 currentResolution = new Vector2(Screen.width, Screen.height); [Conditional("UNITY_ANDROID")] public static void AdjustResolution() { Screen.SetResolution(Mathf.RoundToInt(currentResolution.x), Mathf.RoundToInt(currentResolution.y), true);