UnityDropdown
UnityDropdown copied to clipboard
Fix incorrect editor style name for Unity 2022.3+
In Unity 2022.3 they fixed typo in style name. https://github.com/Unity-Technologies/UnityCsReference/commit/da51b77dce790fa867436bec018bfd56e464cec4#diff-d4e399fabac0c73f6f6580b4c4094492ab460619fb45fe621764230982beefd3
Same problem in SolidUtilities: https://github.com/SolidAlloy/SolidUtilities/pull/9
Would love for this change to go through, stumbled on it today as well.
I think this would break retrocompatibility. A null check and e default to the old typoed string should be preferred.
Oh, sorry I read the unity commit as the one of a PR. You use a define check. Perfect. This also happens in UnityDropdown.
Replaced version defines check with simple null check because this change was ported to Unity 2021, 2022 and 2023.