FIX: Implement caching for InputControlPath display name#2344
Conversation
PR Reviewer Guide 🔍(Review updated until commit 8086d03)Here are some key observations to aid the review process:
🤖 Helpful? Please react with 👍/👎 | Questions❓Please reach out in Slack #ask-u-pr |
PR Code Suggestions ✨Latest suggestions up to 8086d03
🤖 Helpful? Please react with 👍/👎 | Questions❓Please reach out in Slack #ask-u-pr Previous suggestionsSuggestions up to commit 1b38eb1
|
|||||||||||||||
Codecov ReportAttention: Patch coverage is
@@ Coverage Diff @@
## develop #2344 +/- ##
===========================================
- Coverage 77.90% 77.89% -0.02%
===========================================
Files 476 476
Lines 97613 97616 +3
===========================================
- Hits 76048 76040 -8
- Misses 21565 21576 +11 Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes 🚀 New features to boost your workflow:
|
|
Persistent review updated to latest commit 8086d03 |
Packages/com.unity.inputsystem/InputSystem/Editor/ControlPicker/InputControlPathEditor.cs
Outdated
Show resolved
Hide resolved
|
Will take a look today/tomorrow |
Fixed caching for InputControlPath display name and improved alignment of UI elements in the Input Action window.
Description
Purpose of this PR is to fix the TODO by caching per path value and only recompute when the string actually
changes.
ISX-2501
Testing status & QA
Check that it works as before, when inputing in the InputControlPath.
Overall Product Risks
Please rate the potential complexity and halo effect from low to high for the reviewers. Note down potential risks to specific Editor branches if any.
Comments to reviewers
Please describe any additional information such as what to focus on, or historical info for the reviewers.
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.