Steps to reproduce:
- Open a Unity Project
- Ensure the Scene View is visible and that 'Cameras' is enabled
- Duplicate the Main Camera by selecting it and clicking Ctrl + D
- Open the Camera selector in the Camera Preview window
- Observe that both cameras show up. This is expected behaviour
- Rename the second camera's GameObject to the same name as the first one ('Main Camera')
- Open the Camera selector in the Camera Preview window
Actual results: Only the first camera is available to select
Expected results: Both cameras are still available to select
Reproducible with versions: 7000.0.0a15, 6000.1.0b4, 6000.0.35f1, 2023.3.0a5
Not reproducible with versions: 2023.3.0a4, 2022.3.56f1
Can't test with versions: -
Tested on (OS): Windows 11
Notes:
- This is a regression, as prior to 2023.3.0a5, all cameras would show, even if they were named the same