Search Issue Tracker
By Design
Votes
0
Found in
2020.3.40f1
2021.3.11f1
2022.2.0b10
2023.1.0a13
Issue ID
UUM-16306
Regression
No
Nested checked Menu items return incorrect values when the checking function button is not at the same level
Reproduction steps:
1. Open the attached project
2. Open script "Editor/NestedMenuTest.cs"
3. Find "GetSettingsStatus()" and change "NestedMenuTest/Settings/GetSettingsStatus" above it to "NestedMenuTest/GetSettingsStatus"
4. In the Editor, go to "NestedMenuTest -> Settings" and check or uncheck the values in any way
5. Select "NestedMenuTest -> GetSettingsStatus" and check the console
Expected result: The console output correctly represents the checked and unchecked values
Actual result: The console output is incorrect
Reproducible with: 2020.3.40f1, 2021.3.11f1, 2022.2.0b10, 2023.1.0a13
Reproducible on: macOS 12.5.1 (Intel)
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
- Game view renders artifacts when Camera's Component "Post Anti-aliasing" is set to "TAA" and Dynamic Resolution's "Forced Screen Percentage" is changed
- A deactivated Prefab's name color becomes white when a GameObject in the scene is deactivated
- The Game view becomes blank when using Frame Debugger with MSAA and Texture binding enabled in Play Mode
- Crash on dynamixel_sdk.dynamixel:groupSyncReadTxRxPacket when entering Play Mode after updating path to Dynamixel SDK in script
- NullReferenceException is thrown when changing the Inspector preview selection
Resolution Note:
Menu validation functions are activated only when menu is about to be displayed, thus the only intention of validate attribute is to enable or disable menu item while showing it. (ref. https://docs.unity3d.com/ScriptReference/MenuItem-ctor.html)