Second pass attempt at fixing WValueDropDown + Various Bug Fixes#216
Second pass attempt at fixing WValueDropDown + Various Bug Fixes#216
Conversation
There was a problem hiding this comment.
Pull request overview
Reworks WValueDropDown (and related Odin drawers) dropdown rendering to avoid Linux-specific “phantom empty rows” by moving away from EditorGUI.Popup toward GenericMenu-driven selection, and updates the changelog accordingly.
Changes:
- Replaced the small-list
WValueDropDownDrawerselection UI with anEditorGUI.DropdownButton+GenericMenuflow. - Updated Odin drawers (
WValueDropDown,StringInList,IntDropDown) to consistently use the popup/menu approach (removing the page-size threshold branch). - Added an Unreleased changelog entry describing the fix.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| Editor/CustomDrawers/WValueDropDownDrawer.cs | Switches non-paged IMGUI selection from EditorGUI.Popup to GenericMenu selection. |
| Editor/CustomDrawers/Odin/WValueDropDownOdinDrawer.cs | Removes page-size branching; always uses the popup/menu selection path. |
| Editor/CustomDrawers/Odin/StringInListOdinDrawer.cs | Removes page-size branching; always uses the popup/menu selection path. |
| Editor/CustomDrawers/Odin/IntDropDownOdinDrawer.cs | Removes page-size branching; always uses the popup/menu selection path. |
| CHANGELOG.md | Adds Unreleased note describing the dropdown rendering fix. |
| // MIT License - Copyright (c) 2025 wallstop | ||
| // Full license text: https://github.com/wallstop/unity-helpers/blob/main/LICENSE |
There was a problem hiding this comment.
The license header year is 2025, but the repo’s license-year audit checks the header year against the git creation year (and CURRENT_YEAR is 2026 for untracked files). Since this file is being added/modified now, this will likely fail scripts/audit-license-years.sh / license-year-audit.yml. Update the header year to the correct creation year (typically 2026 for new files), or run scripts/update-license-headers.sh to auto-fix.
| // MIT License - Copyright (c) 2025 wallstop | ||
| // Full license text: https://github.com/wallstop/unity-helpers/blob/main/LICENSE |
There was a problem hiding this comment.
The license header year is 2025, but the repo’s license-year audit checks the header year against the git creation year (and CURRENT_YEAR is 2026 for untracked files). Since this file is being added/modified now, this will likely fail scripts/audit-license-years.sh / license-year-audit.yml. Update the header year to the correct creation year (typically 2026 for new files), or run scripts/update-license-headers.sh to auto-fix.
| // MIT License - Copyright (c) 2025 wallstop | ||
| // Full license text: https://github.com/wallstop/unity-helpers/blob/main/LICENSE |
There was a problem hiding this comment.
The license header year is 2025, but the repo’s license-year audit checks the header year against the git creation year (and CURRENT_YEAR is 2026 for untracked files). Since this file is being added/modified now, this will likely fail scripts/audit-license-years.sh / license-year-audit.yml. Update the header year to the correct creation year (typically 2026 for new files), or run scripts/update-license-headers.sh to auto-fix.
Description
✓ Rework how the dropdown/selection works for WValueDropDown, specifically to help ODIN contexts
✓ Add
FailedTestExporter✓ Fix path for
AttributeMetadataCache✓ Ensure various editor tools and concepts utilize
UndoappropriatelyRelated Issue
Fixes #209
Type of Change
Checklist