From 88215ca3f0e3e54ce8a29db1b5bfdde2c476f494 Mon Sep 17 00:00:00 2001 From: xxSeys1 Date: Fri, 25 Oct 2024 19:31:55 +0200 Subject: [PATCH] add auto-upgrader for old focus option --- Source/Editor/Options/InterfaceOptions.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Source/Editor/Options/InterfaceOptions.cs b/Source/Editor/Options/InterfaceOptions.cs index 5b01b88ba..70ebe139f 100644 --- a/Source/Editor/Options/InterfaceOptions.cs +++ b/Source/Editor/Options/InterfaceOptions.cs @@ -340,6 +340,18 @@ namespace FlaxEditor.Options [EditorDisplay("Output Log", "Text Shadow Offset"), EditorOrder(445), Tooltip("The output log text shadow offset. Set to 0 to disable this feature.")] public Float2 OutputLogTextShadowOffset { get; set; } = new Float2(1); + // [Deprecated in v1.10] + [Serialize, Obsolete, NoUndo] + private bool FocusGameWinOnPlay + { + get => throw new Exception(); + set + { + // Upgrade value + FocusOnPlayMode = value ? PlayModeFocus.GameWindow : PlayModeFocus.None; + } + } + /// /// Gets or sets a value indicating whether auto-focus output log window on code compilation error. ///