Skip to content

Commit 601c5b2

Browse files
author
Rene Damm
authored
FIX: Exception when clicking 'Add Action' in empty asset (case 1199562, #1034).
1 parent 0705668 commit 601c5b2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Packages/com.unity.inputsystem/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ however, it has to be formatted properly to pass verification tests.
1515

1616
#### Actions
1717

18+
- When no action map is selected in action editor, plus icon to add an action is now disabled; formerly threw an exception when clicked (case 1199562).
1819
- Removing a callback from actions from the callback itself no longer throws `ArgumentOutOfRangeException` ([case 1192972](https://issuetracker.unity3d.com/issues/input-system-package-argumentoutofrangeexception-error-is-thrown-when-the-callback-is-removed-while-its-being-triggered)).
1920
- "Invalid user" `ArgumentException` when turning the same `PlayerInput` on and off ([case 1198889](https://issuetracker.unity3d.com/issues/input-system-package-argumentexception-invalid-user-error-is-thrown-when-the-callback-disables-game-object-with-playerinput)).
2021
- The list of device requirements for a control scheme in the action editor no longer displays devices with their internal layout name rather than their external display name.

Packages/com.unity.inputsystem/InputSystem/Editor/AssetEditor/InputActionEditorWindow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ private void RebuildActionTree()
449449
if (selectedActionMapItem == null)
450450
{
451451
// Nothing selected. Wipe middle and right pane.
452-
m_ActionsTree.onBuildTree = () => new TreeViewItem(0, -1, "");
452+
m_ActionsTree.onBuildTree = null;
453453
}
454454
else
455455
{

0 commit comments

Comments
 (0)