Repository navigation
UUM-40635: Fixed issue in a number of Unity versions causing "Edit Control Scheme" menu to fail to take input - #1730
Merged
jamesmcgill merged 3 commits intoAug 29, 2023
Conversation
…rectly - rather than being initialised via string
Secticide
force-pushed
the
UUM-40635/unresponsive-edit-control-scheme-menu
branch
from
August 15, 2023 13:00
1d0fd02 to
1868acb
Compare
ritamerkl
reviewed
Aug 17, 2023
ritamerkl
left a comment
Collaborator
There was a problem hiding this comment.
LGTM, please wait for testing (@Pauliusd01)
Pauliusd01
approved these changes
Aug 24, 2023
Pauliusd01
left a comment
Collaborator
There was a problem hiding this comment.
LGTM. Checked with latest trunk Editor and one version that didn't have the style name change, both work correctly:
Latest trunk (has updated style name) -> Worked before this change -> still works with this change
2021.3.27f1 (does not have updated style name) -> Did not work before this change -> now works with this change
jamesmcgill
approved these changes
Aug 29, 2023
jamesmcgill
deleted the
UUM-40635/unresponsive-edit-control-scheme-menu
branch
August 29, 2023 13:42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Issue tracker: UUM-40635
Fixed an issue causing an editor style to not be found when initialising the Edit Control Scheme menu. This PR switches from referencing the editor style via string to referencing
EditorStyles.toolbarSearchFielddirectly. This editor style is present on all versions of Unity we support and prevents us from having to go down the route of specifying which version uses which spelling.Changes made
AdvancedDropdownGUI.Styles.toolbarSearchFieldnow referencesEditorStyles.toolbarSearchFielddirectly rather than relying on a string search.Checklist
Before review:
Changed,Fixed,Addedsections.([case %number%](https://issuetracker.unity3d.com/issues/...)).Area_CanDoX,Area_CanDoX_EvenIfYIsTheCase,Area_WhenIDoX_AndYHappens_ThisIsTheResult.During merge:
NEW: ___.FIX: ___.DOCS: ___.CHANGE: ___.RELEASE: 1.1.0-preview.3.