Skip to content

Commit 4464508

Browse files
committed
Guard code for project-wide actions feature
1 parent b995944 commit 4464508

File tree

1 file changed

+2
-0
lines changed
  • Packages/com.unity.inputsystem/InputSystem/Plugins/PlayerInput

1 file changed

+2
-0
lines changed

Packages/com.unity.inputsystem/InputSystem/Plugins/PlayerInput/PlayerInput.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -955,11 +955,13 @@ public void ActivateInput()
955955
m_InputActive = true;
956956

957957
// Disable project-wide actions if they are being used by this PlayerInput.
958+
#if UNITY_INPUT_SYSTEM_PROJECT_WIDE_ACTIONS
958959
if (m_Actions != null && m_Actions == InputSystem.actions)
959960
{
960961
InputSystem.AllowEnableActionsAfterEnterPlayMode(false);
961962
InputSystem.actions.Disable();
962963
}
964+
#endif
963965

964966
// If we have no current action map but there's a default
965967
// action map, make it current.

0 commit comments

Comments
 (0)