private void PrintDeleteAllResolutions() { AddLabel("Remove all the user-resolutions of the dropdown in the game window."); if (GUILayout.Button("Remove resolutions")) { GameViewUtils.RemoveResolutions(); } }
private static void AddSizeIfDoesntExists(int width, int height, string text) { var index = GameViewUtils.FindSize(width, height); if (index == -1) { GameViewUtils.AddCustomSize(width, height, text); } }
private static void Previous() { GameViewUtils.SetPrevious(); }
private static void Next() { GameViewUtils.SetNext(); }
private void SetSize(int width, int height, string text) { AddSizeIfDoesntExists(width, height, text); GameViewUtils.SetSize(GameViewUtils.FindSize(width, height)); }