diff --git a/Packages/com.unity.inputsystem/CHANGELOG.md b/Packages/com.unity.inputsystem/CHANGELOG.md index aaed622684..7a5da6ef97 100644 --- a/Packages/com.unity.inputsystem/CHANGELOG.md +++ b/Packages/com.unity.inputsystem/CHANGELOG.md @@ -15,6 +15,7 @@ however, it has to be formatted properly to pass verification tests. - Fixed Cut Mode for Action Maps and Actions to make renaming disabled. [ISXB-1155](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1155) - Fixed GamepadButton.LeftTrigger and GamepadButton.RightTrigger enum values not matching displayed dropdown values in editor when using GamepadButtonPropertyDrawer [ISXB-1270](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1270). - Fixed an issue causing InvalidOperationException when entering playmode with domain reload disabled. [ISXB-1208](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1208). +- Fixed an issue where compiling Addressables with Input System package present would result in failed compilation due to `IInputAnalytic.TryGatherData` not being defined [ISXB-1203](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1203). ## [1.12.0] - 2025-01-15 diff --git a/Packages/com.unity.inputsystem/InputSystem/InputAnalytics.cs b/Packages/com.unity.inputsystem/InputSystem/InputAnalytics.cs index 49027e7e2a..7593ebacf4 100644 --- a/Packages/com.unity.inputsystem/InputSystem/InputAnalytics.cs +++ b/Packages/com.unity.inputsystem/InputSystem/InputAnalytics.cs @@ -47,10 +47,10 @@ public interface IInputAnalytic { InputAnalyticInfo info { get; } // May be removed when only supporting 2023.2+ versions -#if !UNITY_2023_2_OR_NEWER +#if !UNITY_EDITOR || !UNITY_2023_2_OR_NEWER // Conditionally mimic UnityEngine.Analytics.IAnalytic bool TryGatherData(out IInputAnalyticData data, out Exception error); -#endif // !UNITY_2023_2_OR_NEWER +#endif // !UNITY_EDITOR || !UNITY_2023_2_OR_NEWER } public static void Initialize(InputManager manager)