namespace AppUI { /// 编辑器下 Game 视图 1170×2532 / 2532×1170 自动切换开关(EditorPrefs)。 public static class ScreenOrientationEditorSettings { public const string EditorPrefsKey = "SmartBow.EditorAutoGameViewOrientation"; #if UNITY_EDITOR public static bool IsEnabled { get => UnityEditor.EditorPrefs.GetBool(EditorPrefsKey, true); set => UnityEditor.EditorPrefs.SetBool(EditorPrefsKey, value); } #endif } }