Skip to content

Commit 1341226

Browse files
committed
FIX: - Fixed an issue where compiling Addressables with Input System package present would result in failed compilation due to IInputAnalytic.TryGatherData not being defined .
1 parent ff2ac9d commit 1341226

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Packages/com.unity.inputsystem/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ however, it has to be formatted properly to pass verification tests.
1515
### Fixed
1616
- Fixed an issue where the prompt to enable the InputSystem backends would interrupt the import of large assets.
1717
- Fixed Cut Mode for Action Maps and Actions to make renaming disabled. [ISXB-1155](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1155)
18-
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).
1919

2020
## [1.12.0] - 2025-01-15
2121

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +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
51+
// ISXB-1203 TryGatherData is defined by base. Note that UNITY_EDITOR is not defined when
52+
// compiling addressables even when running in editor.
53+
#else
5154
// Conditionally mimic UnityEngine.Analytics.IAnalytic
5255
bool TryGatherData(out IInputAnalyticData data, out Exception error);
5356
#endif // !UNITY_2023_2_OR_NEWER

0 commit comments

Comments
 (0)