Skip to content

Commit 1d2b3b6

Browse files
committed
yet another attempt at addressing the ui input issues
1 parent 8955ed4 commit 1d2b3b6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Packages/com.unity.inputsystem/InputSystem/Plugins/UI/InputSystemUIInputModule.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,6 +1677,12 @@ protected override void OnDisable()
16771677
DisableAllActions();
16781678
UnhookActions();
16791679

1680+
// In the case we've been initialialised with default actions, we want to unalloc them
1681+
if (defaultActions != null && defaultActions.asset == actionsAsset)
1682+
{
1683+
UnassignActions();
1684+
}
1685+
16801686
base.OnDisable();
16811687
}
16821688

0 commit comments

Comments
 (0)