Skip to content

Commit cbf236a

Browse files
committed
fix compilation on unity versions older than 2023.2
1 parent 63b440d commit cbf236a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,12 @@ public StartupEventAnalytic(InputManager manager)
140140

141141
public InputAnalyticInfo info => new InputAnalyticInfo(kEventName, kMaxEventsPerHour, kMaxNumberOfElements);
142142

143-
#if UNITY_EDITOR && UNITY_2023_2_OR_NEWER
143+
#if UNITY_EDITOR
144144
internal static Func<bool> m_EditorPlayerSettingHelpersGetNewSystemBackendsEnabled;
145145
internal static Func<bool> m_EditorPlayerSettingHelpersGetOldSystemBackendsEnabled;
146+
#endif
147+
148+
#if UNITY_EDITOR && UNITY_2023_2_OR_NEWER
146149
public bool TryGatherData(out UnityEngine.Analytics.IAnalytic.IData data, out Exception error)
147150
#else
148151
public bool TryGatherData(out IInputAnalyticData data, out Exception error)

0 commit comments

Comments
 (0)