How to reproduce:
1. Open the “ShadowsOnlyTest“ project
2. Open the “SampleScene”
3. Make sure the Scene view is opened
4. In the Hierarchy window select the “Cube-ShadowsOnly” GameObject
5. Observe the selected GameObject
Expected result: "Selection Outline" and "Selection Wire" are rendered
Actual result: "Selection Outline" and "Selection Wire" are not rendered
Reproduced with: 2021.3.37f1, 2022.3.25f1, 2023.3.0a17, 6000.0.0b15
Not reproduced with: 2023.2.19f1, 2023.3.0a16
Reproduced on: macOS 13.6.6 (M1) (by reporter), Windows 11
Not reproduced on: No other environment tested
Notes:
1. Expected and actual results are provided in the internal comments
2. Not reproduced when the “Cube-ShadowsOnly” GameObject “Mesh Renderer” Component’s “Cast Shadow” field is set to anything else but “Shadow Only”
3. Could not find fixed in version due to multiple regression points → More information is provided in the internal notes