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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
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.