FIX: Render parameter-less processors as a plain header and the top button row no longer clips when the properties panel is scrolled [UUM-144325] - #2462
Conversation
…nstead 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-144325
…144325] Hide the parameter-less header's expand arrow with visibility:Hidden instead of display:None so the arrow retains its layout box and the label stays in the same column as the labels of items that do have a foldout.
… panel scrolls Pin the top toolbar row (flex-shrink: 0) so the flex column steals overflow height from the body instead of compressing the toolbar and clipping its buttons once the Action Properties panel is tall enough to show a scrollbar.
Codecov ReportAttention: Patch coverage is
@@ Coverage Diff @@
## develop #2462 +/- ##
========================================
Coverage 78.95% 78.96%
========================================
Files 767 767
Lines 140780 140802 +22
========================================
+ Hits 111153 111179 +26
+ Misses 29627 29623 -4 Flags with carried forward coverage won't be shown. Click here to find out more.
|
K-Tone
left a comment
There was a problem hiding this comment.
Code-wise looks good, just asking to rephrase the release note so that it appears less robotic and easier to digest. I would also keep an eye on those long comments in code that really don't explain much complexity at all in these cases and just steal attention.
Co-authored-by: Anthony Yakovlev <anthony.yakovlev@gmail.com>
Thanks, It does tend to yap in the comments, I tried to unsloppify it. |


Description
Note
This pull request was generated automatically. Please review carefully before merging.
Two related fixes in the Input Actions editor's Action Properties view.
Parameter-less processors/interactions [UUM-144325]. The
NameAndParametersListViewItemconstructor always populated the list item'sFoldoutregardless of whether the processor or interaction had any editable parameters, so a parameter-less entry such as "Invert" showed an expandable foldout whose arrow animated on click but revealed no content. The foldout content is now gated onparameterListView.hasUIToShow; entries with no parameters render as a plain, non-collapsible header — the expand arrow is hidden withvisibility(so the label stays aligned with the foldout items) and the header toggle's picking is disabled, while the move/delete buttons stay clickable. This mirrors the IMGUI editor's existinghasUIToShowbranch.Toolbar clipped when the properties panel scrolls. The top toolbar row (
#control-schemes-toolbar-container) was vertically shrinkable, so when the Action Properties content grew tall enough to overflow, the flex column compressed the toolbar and clipped its buttons once a scrollbar appeared. It now hasflex-shrink: 0, keeping its height while the body absorbs the overflow.Testing status & QA
Overall Product Risks
Comments to reviewers
N/A
Checklist
Before review:
Changed,Fixed,Addedsections.Area_CanDoX,Area_CanDoX_EvenIfYIsTheCase,Area_WhenIDoX_AndYHappens_ThisIsTheResult.During merge:
NEW: ___.FIX: ___.DOCS: ___.CHANGE: ___.RELEASE: 1.1.0-preview.3.