Search Issue Tracker
By Design
By Design in 2023.1.X
Votes
0
Found in
2020.3.43f1
2021.3.16f1
2022.2.1f1
2023.1.0a21
Issue ID
UUM-21615
Regression
No
Menu Validate functions are called when a not-related function is triggered
Steps to reproduce:
1. Open the “IN-16767_NestedMenuCheckedErrorReproduction” project
2. Go to NestedMenuTest → Settings → Enable Alpha
3. Observe the Console
Expected result: Only “EnableAplhaValidate” and “EnableAlpha” logs are shown
Actual result: “EnableGammaValidate”, “EnableAlphaValidate”, “EnableBetaValidate”, and “EnableAlpha” logs are shown
Reproducible with: 2020.3.43f1, 2021.3.16f1, 2022.2.1f1, 2023.1.0a21
Reproduced on: macOS Ventura 13.0.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
- Redoing creation of Sub Scenes and Cube GameObjects in Hierarchy throws “Assertion failed on expression: 'targetScene != nullptr’” error in Console window
- Selecting “New Sub Scene” after assigning “New Scene” in Sub Scene Script Component throws “Destroying GameObjects immediately is not permitted” in the Console window
- Shader Graph "Zoom Step Size" can be set to 0 even though the zoom still works
- Enabling/Disabling the Deprecated Nodes doesn't apply to the opened Shader Graph unless any Variable is added to the Blackboard
- Group Selection title text size is smaller in renaming than the actual font size
Resolution Note:
Hey, MenuItem Validate function is used for preventing function assigned to MenuItem itself from execution.
It is invoked in two places - just before displaying menu nodes for possibility to enable \ disable those and second time when invoking menu item just before it's execution.
if (MenuItemValidate())
MenuItemAction()
In this specific case the former action happens, OS asks for menu contents to be displayed and all Validate function registered to that menu level are called.
Resolution Note (2023.1.X):
Hey, MenuItem Validate function is used for preventing function assigned to MenuItem itself from execution.
It is invoked in two places - just before displaying menu nodes for possibility to enable \ disable those and second time when invoking menu item just before it's execution.
if (MenuItemValidate())
MenuItemAction()
In this specific case the former action happens, OS asks for menu contents to be displayed and all Validate function registered to that menu level are called.