Steps to reproduce:
- Create a 2D project
- Add any 2D game object for example "Capsule"
- Go to "Window" menu and select "Search" ->"New Window"
- Type "Capsule" into search input section and click "Enter"
- Click save button and select "Save Project"
- In "Save search query" popup delete proposed name and enter space symbol
- Observe "Save" button
- Click it, because the button becomes active
- Observe "Console" window
Expected result: Validation shouldn't allow to save the query. Added screenshot in the "Attachments" section.
Actual result: Console displays errors. Added video in the "Attachments" section.
Note: this happens only on Mac. On Windows the SavePanel dialog doesn't allow empty asset name.
Reproducible with: 2023.1.0b3, 2022.2.6f1, 2021.3.18f1, 2021.3.1f1.
Not reproducible with: 2020.3.45f1 (this stream has no this window).
Errors:
Assets/ .asset' is not a valid asset file name.
UnityEditor.GenericMenu:CatchMenu (object,string[],int)
Failed to save search query at Assets/ .asset
UnityEditor.GenericMenu:CatchMenu (object,string[],int) (at /Users/bokken/build/output/unity/unity/Editor/Mono/GUI/GenericMenu.cs:127)