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 da4ae36 commit 4dccfbfCopy full SHA for 4dccfbf
Packages/com.unity.inputsystem/InputSystem/Editor/UITKAssetEditor/Views/ActionsTreeView.cs
@@ -691,7 +691,7 @@ private static bool ShouldBindingBeVisible(SerializedInputBinding serializedInpu
691
if (currentControlScheme.HasValue && !string.IsNullOrEmpty(currentControlScheme.Value.name))
692
{
693
var isMatchingDevice = true;
694
- if (deviceIndex >= 0)
+ if (deviceIndex >= 0 && deviceIndex < currentControlScheme.Value.deviceRequirements.Count)
695
696
var devicePathToMatch = InputControlPath.TryGetDeviceLayout(currentControlScheme.Value.deviceRequirements.ElementAt(deviceIndex).controlPath);
697
var devicePath = InputControlPath.TryGetDeviceLayout(serializedInputBinding.path);
0 commit comments