We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b72c6ab commit 8300377Copy full SHA for 8300377
Packages/com.unity.inputsystem/InputSystem/Editor/InputSystemPluginControl.cs
@@ -1,6 +1,5 @@
1
#if UNITY_2021_1_OR_NEWER
2
using System;
3
-using System.Linq;
4
using NUnit.Framework;
5
using UnityEditor;
6
@@ -46,7 +45,11 @@ private static void CheckForExtension()
46
45
static bool BuildTargetNeedsPlugin()
47
{
48
BuildTarget target = EditorUserBuildSettings.activeBuildTarget;
49
- return !TargetNoPluginNeeded.Contains(target);
+ foreach (var platform in TargetNoPluginNeeded)
+ {
50
+ if (platform == target) return true;
51
+ }
52
+ return false;
53
}
54
55
private const string PlugInName = "com.unity.inputsystem.";
0 commit comments