Skip to content

Commit

Permalink
Fix for build with missing UI
Browse files Browse the repository at this point in the history
  • Loading branch information
ekcoh committed Jun 27, 2024
1 parent ffa2e65 commit 63e88b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Assets/Tests/InputSystem/CoreTests_Analytics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,7 @@ public void Analytics_ShouldReportOnScreenStickData()
}
}

#if UNITY_INPUT_SYSTEM_ENABLE_UI
[Test]
[Category("Analytics")]
public void Analytics_ShouldReportVirtualMouseInputData()
Expand All @@ -712,6 +713,8 @@ public void Analytics_ShouldReportVirtualMouseInputData()
}
}

#endif

// Note: Currently not testing proper analytics reporting when editor is enabled/disabled since unclear how
// to achieve this with test framework. This would be a good future improvement.
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#if UNITY_EDITOR
#if UNITY_EDITOR && UNITY_INPUT_SYSTEM_ENABLE_UI
using System;
using UnityEngine.InputSystem.UI;
using UnityEngine.Serialization;

namespace UnityEngine.InputSystem.Editor
{
Expand Down

0 comments on commit 63e88b7

Please sign in to comment.