Skip to content

Commit 668a792

Browse files
committed
Fix file not guarded by UNITY_EDITOR and failing a project built
1 parent cf727a5 commit 668a792

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Packages/com.unity.inputsystem/InputSystem/Editor/Plugins/EnhancedTouch/TouchSimulationEditor.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
#if UNITY_EDITOR
22
using UnityEditor;
33
using UnityEngine.InputSystem.Editor;
4-
#endif
54

65
namespace UnityEngine.InputSystem.EnhancedTouch {
76

87
[InitializeOnLoad]
9-
class TouchSimulationEdtiorInitialization
8+
class TouchSimulationEditorInitialization
109
{
11-
static TouchSimulationEdtiorInitialization()
10+
static TouchSimulationEditorInitialization()
1211
{
1312
// We're a MonoBehaviour so our cctor may get called as part of the MonoBehaviour being
1413
// created. We don't want to trigger InputSystem initialization from there so delay-execute
@@ -46,4 +45,5 @@ public void OnDisable()
4645
new InputComponentEditorAnalytic(InputSystemComponent.TouchSimulation).Send();
4746
}
4847
}
49-
}
48+
}
49+
#endif

0 commit comments

Comments
 (0)