From 86eec90535df1d3f5c97aebabce096ebb20d00ce Mon Sep 17 00:00:00 2001 From: JosepMariaPujol Date: Fri, 20 Nov 2026 09:53:33 +0100 Subject: [PATCH] FIX: [Port] [ISX-3179] Fixed Input Device Debugger window staying subscribed after closing InputDeviceDebuggerWindow.OnDestroy subscribed to EditorApplication.playModeStateChanged instead of unsubscribing, so closed windows stayed referenced by the event until the next domain reload. Co-Authored-By: Claude Opus 5.5 --- Packages/com.unity.inputsystem/CHANGELOG.md | 1 + .../InputSystem/Editor/Debugger/InputDeviceDebuggerWindow.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Packages/com.unity.inputsystem/CHANGELOG.md b/Packages/com.unity.inputsystem/CHANGELOG.md index 853311de65..f8119d8058 100644 --- a/Packages/com.unity.inputsystem/CHANGELOG.md +++ b/Packages/com.unity.inputsystem/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fixed the Player Input component Inspector not showing the action map events after the Behavior is set to Invoke Unity Events, until the GameObject was selected again. [UUM-150956](https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-150956) - Fixed a control declared for several variants at once (for example `"variants" : "A;B"`) only merging with derived layouts under its first variant; derived overrides for the other variants lost the base control's layout, offset, format and usages. [UUM-160829](https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-160829) - Fixed duplicate entries appearing in the Input Actions Editor binding path search for some devices, such as Mouse and XR controllers. [UUM-160646](https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-160646) +- Fixed closed Input Device Debugger windows staying in memory until the next domain reload. [ISX-3179] ## [1.20.1] - 2026-10-05 diff --git a/Packages/com.unity.inputsystem/InputSystem/Editor/Debugger/InputDeviceDebuggerWindow.cs b/Packages/com.unity.inputsystem/InputSystem/Editor/Debugger/InputDeviceDebuggerWindow.cs index b5eca8c5ab..cb63ea2f40 100644 --- a/Packages/com.unity.inputsystem/InputSystem/Editor/Debugger/InputDeviceDebuggerWindow.cs +++ b/Packages/com.unity.inputsystem/InputSystem/Editor/Debugger/InputDeviceDebuggerWindow.cs @@ -95,7 +95,7 @@ internal void OnDestroy() InputState.onChange -= OnDeviceStateChange; InputSystem.onSettingsChange -= NeedControlValueRefresh; Application.focusChanged -= OnApplicationFocusChange; - EditorApplication.playModeStateChanged += OnPlayModeChange; + EditorApplication.playModeStateChanged -= OnPlayModeChange; EditorApplication.update -= OnEditorUpdate; }