Unity Issue Tracker - EditorGUILayout.MaskField keeps the "Everything" option selected when clicking "Nothing" if there is only 1 option present in the MaskField
Fixed
UUM-21223
EditorGUILayout.MaskField keeps the "Everything" option selected when clicking "Nothing" if there is only 1 option present in the MaskField
Unity: IMGUI Controls
Fixed
2023.3.X
2023.2.X
2022.3.X
Won't Fix
2023.1.X
2022.2.X
2022.2.0a17 onwards
Fixed in: 2023.3.0a18
Fixed in: 2023.2.7f1
2023.1 is no longer a supported version of Unity. Please see the corresponding 2023.2 port instead (if applicable).
This issue has been addressed by another mask field bug fix.
1. Open the attached “MaskFieldBug3.zip“ project
2. Click Window > My Windows
3. In the "Flag field" select the "Everything" option
4. Close the dropdown menu
5. In the "Flag field" select the "Nothing" option
Expected result: the console prints "0" and the "Nothing" option gets selected.
Actual result: the console still prints "FFFFFFFF" and the "Everything" option remains selected.