Skip to content

Commit 4e8347a

Browse files
authored
FIX: Fixed Rename mode is not entered and name is autocompleted to default when creating a new Action Map on pre 6000 version (#2040)
1 parent 747767f commit 4e8347a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Packages/com.unity.inputsystem/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ however, it has to be formatted properly to pass verification tests.
1616
- Fixed `ArgumentNullException: Value cannot be null.` during the migration of Project-wide Input Actions from `InputManager.asset` to `InputSystem_Actions.inputactions` asset which lead do the lost of the configuration [ISXB-1105](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1105)
1717
- Fixed pointerId staying the same when simultaneously releasing and then pressing in the same frame on mobile using touch. [ISXB-1006](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-845)
1818
- Fixed ISubmitHandler.OnSubmit event processing when operating in Manual Update mode (ISXB-1141)
19+
- Fixed Rename mode is not entered and name is autocompleted to default when creating a new Action Map on 2022.3. [ISXB-1151](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1151)
1920

2021
### Changed
2122
- Added back the InputManager to InputSystem project-wide asset migration code with performance improvement (ISX-2086)

Packages/com.unity.inputsystem/InputSystem/Editor/UITKAssetEditor/Views/ActionMapsView.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,13 @@ public override void RedrawUI(ViewState viewState)
8888
if (actionMapData.HasValue)
8989
m_ListView.SetSelection(viewState.actionMapData.IndexOf(actionMapData.Value));
9090
}
91+
// UI toolkit doesn't behave the same on 6000.0 way when refreshing items
92+
// On previous versions, we need to call Rebuild() to refresh the items since refreshItems() is less predicatable
93+
#if UNITY_6000_0_OR_NEWER
9194
m_ListView.RefreshItems();
95+
#else
96+
m_ListView.Rebuild();
97+
#endif
9298
RenameNewActionMaps();
9399
}
94100

0 commit comments

Comments
 (0)