Steps to reproduce:
1. Create new Unity project
2. Open Multiplayer Center window
3. In Multiplayer Center window select Genre of the Game (Adventure) and Number of Players per Session (2)
4. Press button to Install Packages
5. Open Play Mode Scenarios window (Window > Play Mode > Scenarios)
6. In Play Mode Scenarios right-click on “Default” scenario
7. Delete “Default” scenario
8. Observe the Console window
Actual results: A warning “Cannot delete asset. [blank] is not a valid path.” is thrown in the Console window, “Delete” element in the menu is active
Expected results: No warnings should be thrown in the Console window, “Delete” element in the menu should be greyed out
Reproducible with versions: 2.0.1 (6000.4.0a5, 6000.5.0a2)
Can’t test with versions: 6000.3.0f1 and lower (No “Default” Scenario)
Tested on (OS): Ubuntu 24.04, macOS Silicon Tahoe 26.0.1 (M1)
Warning:
- Cannot delete asset. is not a valid path.
UnityEditor.AssetDatabase:DeleteAsset (string)
Unity.PlayMode.Editor.PlayModeListView/<>c_DisplayClass12_0:<InstanceListItemContextMenu>b_1 (UnityEngine.UIElements.DropdownMenuAction) (at /Users/bokken/build/output/unity/unity/Modules/PlayModeEditor/Managed/Scenarios/UI/PlayModeScenariosWindow/PlayModeListView.cs:186)
UnityEditor.GenericMenu:CatchMenu (object,string[],int)