Commit 7044c7e
committed
FIX: Parameter-less processors and interactions show a plain header instead of an empty foldout in the Input Actions editor [UUM-144325]
In the UITK Input Actions editor's Action Properties view, every processor/interaction list item was rendered with an expandable foldout regardless of whether it had any editable parameters, so a parameter-less processor such as "Invert" showed a foldout whose arrow animated on click but revealed no content.
The NameAndParametersListViewItem(VisualElement root, ParameterListView parameterListView, ButtonProperties buttonProperties) constructor now gates the foldout content on parameterListView.hasUIToShow. When there are no editable parameters it hides the header toggle's expand arrow (unity-toggle__checkmark) and sets the toggle's pickingMode to Ignore, so the item reads as a plain, non-collapsible header while the move-up/move-down/delete buttons stay clickable. This mirrors the IMGUI editor, which uses the same hasUIToShow predicate to choose foldout-vs-label.
Jira: https://jira.unity3d.com/browse/UUM-1443251 parent a8bc230 commit 7044c7e
2 files changed
Lines changed: 18 additions & 2 deletions
File tree
- Packages/com.unity.inputsystem
- InputSystem/Editor/UITKAssetEditor/Views
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
174 | 173 | | |
175 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
176 | 191 | | |
177 | 192 | | |
178 | 193 | | |
| |||
0 commit comments