Search Issue Tracker
Fixed in 2022.2.X
Votes
0
Found in
2022.1
2022.1.0a10
2022.1.0a15
Issue ID
1390405
Regression
Yes
"EditorGUILayout.MaskField" returns different values if the dropdown list was closed when selecting options
How to reproduce:
1. Open project "MaskField bug.zip"
2. In the Menu open Window > My Window
3. Press on "Nothing" and select "A", "B", "C" and don't close the dropdown list
4. Observe the "Mask value" at the bottom of the Editor
Expected result: "Mask value" is "FFFFFFFF"
Actual result: "Mask value" is "7"
Reproducible with: 2022.1.0a10, 2022.1.0b2
Not reproducible with: 2022.1.0a3, 2022.1.0a9
Could not test with: 2019.4.34f1 (Errors after downgrade), 2020.3.25f1, 2021.2.7f1, 2022.1.0a2 (Can't select multiple options)
Note: Not reproducible if closing dropdown list when selecting options
-
Smitzo
Dec 28, 2023 01:34
This is not fixed. Replicable in 2022.3.16f1.
- Create a monobehaviour with 2 serializefield private ints.
- Make an editor script that displays MaskField for both the ints with a custom array of options
- Toggle the values in the dropdown of the frist int (the first int works correctly)
- Toggle the values in the dropdown of the second int (the values automatically reset to the values of the first int)How can you say it is fixed when it absolutely is not? Who tested this? Do you guys need some help?
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on PrepareDrawShadowsCommandStep1 when entering the Play Mode in a specific project
- Physics Layer Collision Matrix's Layer names, checkboxes and hover highlights become misaligned when the Editor's UI Scaling gets changed
- Light/shadow information on an edge of a Terrain tile creates a seam with an adjacent Terrain tile when baking a LightMap
- "Missing types referenced from component UniversalRenderPipelineGlobalSettings on game object UniversalRenderPipelineGlobalSettings..." warning is thrown after switching the Platform to tvOS
- “Metal: Error creating pipeline state (Universal Render Pipeline/2D/Sprite-Lit-Default): Vertex attribute BLENDINDICES0(5) of type uint4 cannot be read using MTLAttributeFormatFloat2 (null)“ when setting GPU Skinning to GPU after opening the project
Resolution Note (fix version 2022.2):
Fixed in: 2022.2.0a17