Skip to content

Commit fc4ddbe

Browse files
authored
FIX: Fixed an issue where compiling Addressables with Input System package present would result in failed compilation due to IInputAnalytic.TryGatherData not being defined. (#2115)
1 parent 528e824 commit fc4ddbe

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Packages/com.unity.inputsystem/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ however, it has to be formatted properly to pass verification tests.
1515
- Fixed Cut Mode for Action Maps and Actions to make renaming disabled. [ISXB-1155](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1155)
1616
- 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).
1717
- Fixed an issue causing InvalidOperationException when entering playmode with domain reload disabled. [ISXB-1208](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1208).
18+
- 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).
1819

1920
## [1.12.0] - 2025-01-15
2021

Packages/com.unity.inputsystem/InputSystem/InputAnalytics.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ public interface IInputAnalytic
4747
{
4848
InputAnalyticInfo info { get; } // May be removed when only supporting 2023.2+ versions
4949

50-
#if !UNITY_2023_2_OR_NEWER
50+
#if !UNITY_EDITOR || !UNITY_2023_2_OR_NEWER
5151
// Conditionally mimic UnityEngine.Analytics.IAnalytic
5252
bool TryGatherData(out IInputAnalyticData data, out Exception error);
53-
#endif // !UNITY_2023_2_OR_NEWER
53+
#endif // !UNITY_EDITOR || !UNITY_2023_2_OR_NEWER
5454
}
5555

5656
public static void Initialize(InputManager manager)

0 commit comments

Comments
 (0)