From c93bcdb62eab26f4961177393c25aaa5590ed10f Mon Sep 17 00:00:00 2001 From: Anthony Yakovlev Date: Thu, 30 Oct 2025 17:53:55 +0300 Subject: [PATCH 1/9] an example use case for the new vector analytics api --- Packages/com.unity.inputsystem/InputSystem/InputManager.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Packages/com.unity.inputsystem/InputSystem/InputManager.cs b/Packages/com.unity.inputsystem/InputSystem/InputManager.cs index 1edf9ad90f..ff4298aa3f 100644 --- a/Packages/com.unity.inputsystem/InputSystem/InputManager.cs +++ b/Packages/com.unity.inputsystem/InputSystem/InputManager.cs @@ -2519,6 +2519,12 @@ private unsafe void InitializeDeviceState(InputDevice device) private void OnNativeDeviceDiscovered(int deviceId, string deviceDescriptor) { + var deviceTag = InputDeviceDescription.FromJson(deviceDescriptor).product; + + Debug.Log($"OnNativeDeviceDiscovered {deviceTag}"); + + NativeInputSystem.LogDeviceConnectedInsight( deviceTag ); + // Make sure we're not adding to m_AvailableDevices before we restored what we // had before a domain reload. RestoreDevicesAfterDomainReloadIfNecessary(); From d0b8bb6e1d4f7f1b0e3807b6d8414c99041a8f10 Mon Sep 17 00:00:00 2001 From: Anthony Yakovlev Date: Tue, 20 Jan 2026 10:46:59 +0300 Subject: [PATCH 2/9] extend device connection insight with more information --- .../InputSystem/InputManager.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Packages/com.unity.inputsystem/InputSystem/InputManager.cs b/Packages/com.unity.inputsystem/InputSystem/InputManager.cs index ff4298aa3f..dc85350f9c 100644 --- a/Packages/com.unity.inputsystem/InputSystem/InputManager.cs +++ b/Packages/com.unity.inputsystem/InputSystem/InputManager.cs @@ -2519,12 +2519,6 @@ private unsafe void InitializeDeviceState(InputDevice device) private void OnNativeDeviceDiscovered(int deviceId, string deviceDescriptor) { - var deviceTag = InputDeviceDescription.FromJson(deviceDescriptor).product; - - Debug.Log($"OnNativeDeviceDiscovered {deviceTag}"); - - NativeInputSystem.LogDeviceConnectedInsight( deviceTag ); - // Make sure we're not adding to m_AvailableDevices before we restored what we // had before a domain reload. RestoreDevicesAfterDomainReloadIfNecessary(); @@ -2537,6 +2531,12 @@ private void OnNativeDeviceDiscovered(int deviceId, string deviceDescriptor) // Parse description, if need be. var description = device?.description ?? InputDeviceDescription.FromJson(deviceDescriptor); + var deviceTag = description.product; + + Debug.Log($"OnNativeDeviceDiscovered {deviceTag}"); + + NativeInputSystem.LogDeviceConnectedInsight(description.serial, description.product, description.interfaceName, description.version); + // Add it. var markAsRemoved = false; try From 5c5079419e4c57c8998cb66c06464e0cdf0190f6 Mon Sep 17 00:00:00 2001 From: Anthony Yakovlev Date: Tue, 20 Jan 2026 10:55:34 +0300 Subject: [PATCH 3/9] add device disonnected event --- Packages/com.unity.inputsystem/InputSystem/InputManager.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Packages/com.unity.inputsystem/InputSystem/InputManager.cs b/Packages/com.unity.inputsystem/InputSystem/InputManager.cs index dc85350f9c..37312e7870 100644 --- a/Packages/com.unity.inputsystem/InputSystem/InputManager.cs +++ b/Packages/com.unity.inputsystem/InputSystem/InputManager.cs @@ -2531,10 +2531,6 @@ private void OnNativeDeviceDiscovered(int deviceId, string deviceDescriptor) // Parse description, if need be. var description = device?.description ?? InputDeviceDescription.FromJson(deviceDescriptor); - var deviceTag = description.product; - - Debug.Log($"OnNativeDeviceDiscovered {deviceTag}"); - NativeInputSystem.LogDeviceConnectedInsight(description.serial, description.product, description.interfaceName, description.version); // Add it. @@ -3603,6 +3599,8 @@ private unsafe void OnUpdate(InputUpdateType updateType, ref InputEventBuffer ev { RemoveDevice(device, keepOnListOfAvailableDevices: false); + NativeInputSystem.LogDeviceDisconnectedInsight(device.description.serial); + // If it's a native device with a description, put it on the list of disconnected // devices. if (device.native && !device.description.empty) From 31832b7cd19366560c2981b3e5b10a8001cc9ff3 Mon Sep 17 00:00:00 2001 From: Anthony Yakovlev Date: Tue, 20 Jan 2026 11:09:19 +0300 Subject: [PATCH 4/9] guard insights with version-dependent define --- .../com.unity.inputsystem/InputSystem/InputManager.cs | 5 ++++- .../InputSystem/Unity.InputSystem.asmdef | 11 ++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Packages/com.unity.inputsystem/InputSystem/InputManager.cs b/Packages/com.unity.inputsystem/InputSystem/InputManager.cs index 37312e7870..919cdee905 100644 --- a/Packages/com.unity.inputsystem/InputSystem/InputManager.cs +++ b/Packages/com.unity.inputsystem/InputSystem/InputManager.cs @@ -2531,7 +2531,9 @@ private void OnNativeDeviceDiscovered(int deviceId, string deviceDescriptor) // Parse description, if need be. var description = device?.description ?? InputDeviceDescription.FromJson(deviceDescriptor); +#if UNITY_INPUTSYSTEM_SUPPORTS_INSIGHTS NativeInputSystem.LogDeviceConnectedInsight(description.serial, description.product, description.interfaceName, description.version); +#endif // Add it. var markAsRemoved = false; @@ -3599,8 +3601,9 @@ private unsafe void OnUpdate(InputUpdateType updateType, ref InputEventBuffer ev { RemoveDevice(device, keepOnListOfAvailableDevices: false); +#if UNITY_INPUTSYSTEM_SUPPORTS_INSIGHTS NativeInputSystem.LogDeviceDisconnectedInsight(device.description.serial); - +#endif // If it's a native device with a description, put it on the list of disconnected // devices. if (device.native && !device.description.empty) diff --git a/Packages/com.unity.inputsystem/InputSystem/Unity.InputSystem.asmdef b/Packages/com.unity.inputsystem/InputSystem/Unity.InputSystem.asmdef index d551736cd1..d30e3b5a84 100644 --- a/Packages/com.unity.inputsystem/InputSystem/Unity.InputSystem.asmdef +++ b/Packages/com.unity.inputsystem/InputSystem/Unity.InputSystem.asmdef @@ -92,11 +92,16 @@ "expression": "6000.3.0a6", "define": "UNITY_INPUT_SYSTEM_PLATFORM_POLLING_FREQUENCY" }, - { - "name": "Unity", + { + "name": "Unity", "expression": "6000.4.0a4", "define": "UNITY_INPUTSYSTEM_SUPPORTS_MOUSE_SCRIPT_EVENTS" - } + }, + { + "name": "Unity", + "expression": "6000.5.0a5", + "define": "UNITY_INPUTSYSTEM_SUPPORTS_INSIGHTS" + } ], "noEngineReferences": false } From 1dbbc48c3f1cad2ed93f3de76af0e01260224dda Mon Sep 17 00:00:00 2001 From: Anthony Yakovlev Date: Tue, 20 Jan 2026 13:13:37 +0300 Subject: [PATCH 5/9] punch input actions stored in the action maps through to insights --- .../InputSystem/Actions/InputActionState.cs | 9 +++++++++ .../com.unity.inputsystem/InputSystem/InputManager.cs | 4 ++-- .../InputSystem/Unity.InputSystem.asmdef | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Packages/com.unity.inputsystem/InputSystem/Actions/InputActionState.cs b/Packages/com.unity.inputsystem/InputSystem/Actions/InputActionState.cs index 82d6fe1082..fc4a704f81 100644 --- a/Packages/com.unity.inputsystem/InputSystem/Actions/InputActionState.cs +++ b/Packages/com.unity.inputsystem/InputSystem/Actions/InputActionState.cs @@ -10,6 +10,7 @@ using UnityEngine.InputSystem.Utilities; using ProfilerMarker = Unity.Profiling.ProfilerMarker; +using UnityEngineInternal.Input; ////TODO: now that we can bind to controls by display name, we need to re-resolve controls when those change (e.g. when the keyboard layout changes) @@ -957,6 +958,14 @@ public void EnableAllActions(InputActionMap map) NotifyListenersOfActionChange(InputActionChange.ActionEnabled, map.m_SingletonAction); else NotifyListenersOfActionChange(InputActionChange.ActionMapEnabled, map); + +#if UNITY_INPUT_SYSTEM_SUPPORTS_INSIGHTS + // also report all actions to insights + foreach (var inputAction in map.actions) + { + NativeInputSystem.LogInputActionInsight(inputAction.name, inputAction.type.ToString()); + } +#endif } private void EnableControls(InputActionMap map) diff --git a/Packages/com.unity.inputsystem/InputSystem/InputManager.cs b/Packages/com.unity.inputsystem/InputSystem/InputManager.cs index 919cdee905..621d6b0755 100644 --- a/Packages/com.unity.inputsystem/InputSystem/InputManager.cs +++ b/Packages/com.unity.inputsystem/InputSystem/InputManager.cs @@ -2531,7 +2531,7 @@ private void OnNativeDeviceDiscovered(int deviceId, string deviceDescriptor) // Parse description, if need be. var description = device?.description ?? InputDeviceDescription.FromJson(deviceDescriptor); -#if UNITY_INPUTSYSTEM_SUPPORTS_INSIGHTS +#if UNITY_INPUT_SYSTEM_SUPPORTS_INSIGHTS NativeInputSystem.LogDeviceConnectedInsight(description.serial, description.product, description.interfaceName, description.version); #endif @@ -3601,7 +3601,7 @@ private unsafe void OnUpdate(InputUpdateType updateType, ref InputEventBuffer ev { RemoveDevice(device, keepOnListOfAvailableDevices: false); -#if UNITY_INPUTSYSTEM_SUPPORTS_INSIGHTS +#if UNITY_INPUT_SYSTEM_SUPPORTS_INSIGHTS NativeInputSystem.LogDeviceDisconnectedInsight(device.description.serial); #endif // If it's a native device with a description, put it on the list of disconnected diff --git a/Packages/com.unity.inputsystem/InputSystem/Unity.InputSystem.asmdef b/Packages/com.unity.inputsystem/InputSystem/Unity.InputSystem.asmdef index d30e3b5a84..3d9188f7f1 100644 --- a/Packages/com.unity.inputsystem/InputSystem/Unity.InputSystem.asmdef +++ b/Packages/com.unity.inputsystem/InputSystem/Unity.InputSystem.asmdef @@ -100,7 +100,7 @@ { "name": "Unity", "expression": "6000.5.0a5", - "define": "UNITY_INPUTSYSTEM_SUPPORTS_INSIGHTS" + "define": "UNITY_INPUT_SYSTEM_SUPPORTS_INSIGHTS" } ], "noEngineReferences": false From e7794d22bdf9ff82c4c9467f32db6a4169f82021 Mon Sep 17 00:00:00 2001 From: Anthony Yakovlev Date: Wed, 21 Jan 2026 13:14:48 +0300 Subject: [PATCH 6/9] use insights via an interface as suggested during reviews --- .../InputSystem/Actions/InputActionState.cs | 2 +- .../InputSystem/IInputRuntime.cs | 4 ++++ .../InputSystem/InputManager.cs | 9 +++----- .../InputSystem/NativeInputRuntime.cs | 23 ++++++++++++++++++- .../Tests/TestFixture/InputTestRuntime.cs | 15 +++++++++++- 5 files changed, 44 insertions(+), 9 deletions(-) diff --git a/Packages/com.unity.inputsystem/InputSystem/Actions/InputActionState.cs b/Packages/com.unity.inputsystem/InputSystem/Actions/InputActionState.cs index fc4a704f81..24c28889a6 100644 --- a/Packages/com.unity.inputsystem/InputSystem/Actions/InputActionState.cs +++ b/Packages/com.unity.inputsystem/InputSystem/Actions/InputActionState.cs @@ -963,7 +963,7 @@ public void EnableAllActions(InputActionMap map) // also report all actions to insights foreach (var inputAction in map.actions) { - NativeInputSystem.LogInputActionInsight(inputAction.name, inputAction.type.ToString()); + InputSystem.s_Manager.m_Runtime.LogInputActionInsight( inputAction.name, inputAction.type.ToString() ); } #endif } diff --git a/Packages/com.unity.inputsystem/InputSystem/IInputRuntime.cs b/Packages/com.unity.inputsystem/InputSystem/IInputRuntime.cs index f7851f12f0..139ee4a18a 100644 --- a/Packages/com.unity.inputsystem/InputSystem/IInputRuntime.cs +++ b/Packages/com.unity.inputsystem/InputSystem/IInputRuntime.cs @@ -187,6 +187,10 @@ internal unsafe interface IInputRuntime void SendAnalytic(InputAnalytics.IInputAnalytic analytic); #endif // UNITY_ANALYTICS || UNITY_EDITOR + void LogDeviceConnectedInsight(string serial, string product, string deviceInterface, string version); + void LogDeviceDisconnectedInsight(string serial); + void LogInputActionInsight(string name, string type); + #if UNITY_EDITOR Action onPlayModeChanged { get; set; } Action onProjectChange { get; set; } diff --git a/Packages/com.unity.inputsystem/InputSystem/InputManager.cs b/Packages/com.unity.inputsystem/InputSystem/InputManager.cs index 621d6b0755..8fef187d5e 100644 --- a/Packages/com.unity.inputsystem/InputSystem/InputManager.cs +++ b/Packages/com.unity.inputsystem/InputSystem/InputManager.cs @@ -2531,9 +2531,7 @@ private void OnNativeDeviceDiscovered(int deviceId, string deviceDescriptor) // Parse description, if need be. var description = device?.description ?? InputDeviceDescription.FromJson(deviceDescriptor); -#if UNITY_INPUT_SYSTEM_SUPPORTS_INSIGHTS - NativeInputSystem.LogDeviceConnectedInsight(description.serial, description.product, description.interfaceName, description.version); -#endif + m_Runtime.LogDeviceConnectedInsight(description.serial, description.product, description.interfaceName, description.version); // Add it. var markAsRemoved = false; @@ -3601,9 +3599,8 @@ private unsafe void OnUpdate(InputUpdateType updateType, ref InputEventBuffer ev { RemoveDevice(device, keepOnListOfAvailableDevices: false); -#if UNITY_INPUT_SYSTEM_SUPPORTS_INSIGHTS - NativeInputSystem.LogDeviceDisconnectedInsight(device.description.serial); -#endif + m_Runtime.LogDeviceDisconnectedInsight(device.description.serial); + // If it's a native device with a description, put it on the list of disconnected // devices. if (device.native && !device.description.empty) diff --git a/Packages/com.unity.inputsystem/InputSystem/NativeInputRuntime.cs b/Packages/com.unity.inputsystem/InputSystem/NativeInputRuntime.cs index 6ee7e59f1f..38d8f34a77 100644 --- a/Packages/com.unity.inputsystem/InputSystem/NativeInputRuntime.cs +++ b/Packages/com.unity.inputsystem/InputSystem/NativeInputRuntime.cs @@ -423,6 +423,27 @@ public void SendAnalytic(InputAnalytics.IInputAnalytic analytic) #endif //ENABLE_CLOUD_SERVICES_ANALYTICS } - #endif // UNITY_ANALYTICS || UNITY_EDITOR + public void LogDeviceConnectedInsight(string serial, string product, string deviceInterface, string version) + { +#if UNITY_INPUT_SYSTEM_SUPPORTS_INSIGHTS + NativeInputSystem.LogDeviceConnectedInsight(serial, product, deviceInterface, version); +#endif + } + + public void LogDeviceDisconnectedInsight(string serial) + { +#if UNITY_INPUT_SYSTEM_SUPPORTS_INSIGHTS + NativeInputSystem.LogDeviceDisconnectedInsight(serial); +#endif + } + + public void LogInputActionInsight(string name, string type) + { +#if UNITY_INPUT_SYSTEM_SUPPORTS_INSIGHTS + NativeInputSystem.LogInputActionInsight(name, type); +#endif + } + +#endif // UNITY_ANALYTICS || UNITY_EDITOR } } diff --git a/Packages/com.unity.inputsystem/Tests/TestFixture/InputTestRuntime.cs b/Packages/com.unity.inputsystem/Tests/TestFixture/InputTestRuntime.cs index 0042954c86..06f1164d9c 100644 --- a/Packages/com.unity.inputsystem/Tests/TestFixture/InputTestRuntime.cs +++ b/Packages/com.unity.inputsystem/Tests/TestFixture/InputTestRuntime.cs @@ -481,6 +481,19 @@ public void SendAnalytic(InputAnalytics.IInputAnalytic analytic) #endif // UNITY_2023_2_OR_NEWER } - #endif // UNITY_ANALYTICS || UNITY_EDITOR + // We don't want to populate Insights from within tests, even when running them in players + public void LogDeviceConnectedInsight(string serial, string product, string deviceInterface, string version) + { + } + + public void LogDeviceDisconnectedInsight(string serial) + { + } + + public void LogInputActionInsight(string name, string type) + { + } + +#endif // UNITY_ANALYTICS || UNITY_EDITOR } } From 32d53c561be3df994a2c97312fcf19d3b0c50e23 Mon Sep 17 00:00:00 2001 From: Anthony Yakovlev Date: Wed, 21 Jan 2026 13:41:46 +0300 Subject: [PATCH 7/9] use insights via a proxy interface --- .../InputSystem/Actions/InputActionState.cs | 2 +- .../InputSystem/IInputRuntime.cs | 6 +++--- .../InputSystem/InputManager.cs | 4 ++-- .../InputSystem/NativeInputRuntime.cs | 14 ++++++++------ .../Tests/TestFixture/InputTestRuntime.cs | 6 +++--- 5 files changed, 17 insertions(+), 15 deletions(-) diff --git a/Packages/com.unity.inputsystem/InputSystem/Actions/InputActionState.cs b/Packages/com.unity.inputsystem/InputSystem/Actions/InputActionState.cs index 24c28889a6..72fd4e3476 100644 --- a/Packages/com.unity.inputsystem/InputSystem/Actions/InputActionState.cs +++ b/Packages/com.unity.inputsystem/InputSystem/Actions/InputActionState.cs @@ -963,7 +963,7 @@ public void EnableAllActions(InputActionMap map) // also report all actions to insights foreach (var inputAction in map.actions) { - InputSystem.s_Manager.m_Runtime.LogInputActionInsight( inputAction.name, inputAction.type.ToString() ); + InputSystem.s_Manager.m_Runtime.LogInputActionInsight( inputAction ); } #endif } diff --git a/Packages/com.unity.inputsystem/InputSystem/IInputRuntime.cs b/Packages/com.unity.inputsystem/InputSystem/IInputRuntime.cs index 139ee4a18a..12381093d5 100644 --- a/Packages/com.unity.inputsystem/InputSystem/IInputRuntime.cs +++ b/Packages/com.unity.inputsystem/InputSystem/IInputRuntime.cs @@ -187,9 +187,9 @@ internal unsafe interface IInputRuntime void SendAnalytic(InputAnalytics.IInputAnalytic analytic); #endif // UNITY_ANALYTICS || UNITY_EDITOR - void LogDeviceConnectedInsight(string serial, string product, string deviceInterface, string version); - void LogDeviceDisconnectedInsight(string serial); - void LogInputActionInsight(string name, string type); + void LogDeviceConnectedInsight(InputDeviceDescription description); + void LogDeviceDisconnectedInsight(InputDeviceDescription description); + void LogInputActionInsight(InputAction action); #if UNITY_EDITOR Action onPlayModeChanged { get; set; } diff --git a/Packages/com.unity.inputsystem/InputSystem/InputManager.cs b/Packages/com.unity.inputsystem/InputSystem/InputManager.cs index 8fef187d5e..96aaac69f9 100644 --- a/Packages/com.unity.inputsystem/InputSystem/InputManager.cs +++ b/Packages/com.unity.inputsystem/InputSystem/InputManager.cs @@ -2531,7 +2531,7 @@ private void OnNativeDeviceDiscovered(int deviceId, string deviceDescriptor) // Parse description, if need be. var description = device?.description ?? InputDeviceDescription.FromJson(deviceDescriptor); - m_Runtime.LogDeviceConnectedInsight(description.serial, description.product, description.interfaceName, description.version); + m_Runtime.LogDeviceConnectedInsight(description); // Add it. var markAsRemoved = false; @@ -3599,7 +3599,7 @@ private unsafe void OnUpdate(InputUpdateType updateType, ref InputEventBuffer ev { RemoveDevice(device, keepOnListOfAvailableDevices: false); - m_Runtime.LogDeviceDisconnectedInsight(device.description.serial); + m_Runtime.LogDeviceDisconnectedInsight(device.description); // If it's a native device with a description, put it on the list of disconnected // devices. diff --git a/Packages/com.unity.inputsystem/InputSystem/NativeInputRuntime.cs b/Packages/com.unity.inputsystem/InputSystem/NativeInputRuntime.cs index 38d8f34a77..f10ce63fc4 100644 --- a/Packages/com.unity.inputsystem/InputSystem/NativeInputRuntime.cs +++ b/Packages/com.unity.inputsystem/InputSystem/NativeInputRuntime.cs @@ -4,6 +4,8 @@ using UnityEngine.Analytics; using UnityEngine.InputSystem.Utilities; using UnityEngineInternal.Input; +using UnityEngine.InputSystem.Layouts; + #if UNITY_EDITOR using System.Reflection; @@ -423,24 +425,24 @@ public void SendAnalytic(InputAnalytics.IInputAnalytic analytic) #endif //ENABLE_CLOUD_SERVICES_ANALYTICS } - public void LogDeviceConnectedInsight(string serial, string product, string deviceInterface, string version) + public void LogDeviceConnectedInsight(InputDeviceDescription description) { #if UNITY_INPUT_SYSTEM_SUPPORTS_INSIGHTS - NativeInputSystem.LogDeviceConnectedInsight(serial, product, deviceInterface, version); + NativeInputSystem.LogDeviceConnectedInsight(description.serial, description.product, description.interfaceName, description.version); #endif } - public void LogDeviceDisconnectedInsight(string serial) + public void LogDeviceDisconnectedInsight(InputDeviceDescription description) { #if UNITY_INPUT_SYSTEM_SUPPORTS_INSIGHTS - NativeInputSystem.LogDeviceDisconnectedInsight(serial); + NativeInputSystem.LogDeviceDisconnectedInsight(description.serial); #endif } - public void LogInputActionInsight(string name, string type) + public void LogInputActionInsight(InputAction action) { #if UNITY_INPUT_SYSTEM_SUPPORTS_INSIGHTS - NativeInputSystem.LogInputActionInsight(name, type); + NativeInputSystem.LogInputActionInsight(action.name, action.type.ToString()); #endif } diff --git a/Packages/com.unity.inputsystem/Tests/TestFixture/InputTestRuntime.cs b/Packages/com.unity.inputsystem/Tests/TestFixture/InputTestRuntime.cs index 06f1164d9c..bff1fc4d18 100644 --- a/Packages/com.unity.inputsystem/Tests/TestFixture/InputTestRuntime.cs +++ b/Packages/com.unity.inputsystem/Tests/TestFixture/InputTestRuntime.cs @@ -482,15 +482,15 @@ public void SendAnalytic(InputAnalytics.IInputAnalytic analytic) } // We don't want to populate Insights from within tests, even when running them in players - public void LogDeviceConnectedInsight(string serial, string product, string deviceInterface, string version) + public void LogDeviceConnectedInsight(InputDeviceDescription description) { } - public void LogDeviceDisconnectedInsight(string serial) + public void LogDeviceDisconnectedInsight(InputDeviceDescription description) { } - public void LogInputActionInsight(string name, string type) + public void LogInputActionInsight(InputAction action) { } From d36d8fd46fbcf4248e5cd7907eb7528b84385aed Mon Sep 17 00:00:00 2001 From: Anthony Yakovlev Date: Wed, 21 Jan 2026 13:42:32 +0300 Subject: [PATCH 8/9] removed unused includes --- .../InputSystem/Actions/InputActionState.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/Packages/com.unity.inputsystem/InputSystem/Actions/InputActionState.cs b/Packages/com.unity.inputsystem/InputSystem/Actions/InputActionState.cs index 72fd4e3476..094a177104 100644 --- a/Packages/com.unity.inputsystem/InputSystem/Actions/InputActionState.cs +++ b/Packages/com.unity.inputsystem/InputSystem/Actions/InputActionState.cs @@ -6,11 +6,9 @@ using Unity.Collections.LowLevel.Unsafe; using UnityEngine.InputSystem.Controls; using UnityEngine.InputSystem.LowLevel; -using Unity.Profiling; using UnityEngine.InputSystem.Utilities; using ProfilerMarker = Unity.Profiling.ProfilerMarker; -using UnityEngineInternal.Input; ////TODO: now that we can bind to controls by display name, we need to re-resolve controls when those change (e.g. when the keyboard layout changes) From f42157a342bb3ec46e3cbfbbf6771c21aaf98479 Mon Sep 17 00:00:00 2001 From: Anthony Yakovlev Date: Wed, 21 Jan 2026 14:16:07 +0300 Subject: [PATCH 9/9] don't send any data from within editor --- .../com.unity.inputsystem/InputSystem/NativeInputRuntime.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Packages/com.unity.inputsystem/InputSystem/NativeInputRuntime.cs b/Packages/com.unity.inputsystem/InputSystem/NativeInputRuntime.cs index f10ce63fc4..4070b22ef3 100644 --- a/Packages/com.unity.inputsystem/InputSystem/NativeInputRuntime.cs +++ b/Packages/com.unity.inputsystem/InputSystem/NativeInputRuntime.cs @@ -427,21 +427,21 @@ public void SendAnalytic(InputAnalytics.IInputAnalytic analytic) public void LogDeviceConnectedInsight(InputDeviceDescription description) { -#if UNITY_INPUT_SYSTEM_SUPPORTS_INSIGHTS +#if UNITY_INPUT_SYSTEM_SUPPORTS_INSIGHTS && !UNITY_EDITOR NativeInputSystem.LogDeviceConnectedInsight(description.serial, description.product, description.interfaceName, description.version); #endif } public void LogDeviceDisconnectedInsight(InputDeviceDescription description) { -#if UNITY_INPUT_SYSTEM_SUPPORTS_INSIGHTS +#if UNITY_INPUT_SYSTEM_SUPPORTS_INSIGHTS && !UNITY_EDITOR NativeInputSystem.LogDeviceDisconnectedInsight(description.serial); #endif } public void LogInputActionInsight(InputAction action) { -#if UNITY_INPUT_SYSTEM_SUPPORTS_INSIGHTS +#if UNITY_INPUT_SYSTEM_SUPPORTS_INSIGHTS && !UNITY_EDITOR NativeInputSystem.LogInputActionInsight(action.name, action.type.ToString()); #endif }