| 12345678910111213141516 |
- namespace AppUI
- {
- /// <summary>编辑器下 Game 视图 1170×2532 / 2532×1170 自动切换开关(EditorPrefs)。</summary>
- 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
- }
- }
|