Reproduction steps:
1. Open the attached “BugRepro” project
2. Open the “Assets/OutdoorsScene.unity” Scene
3. Select “Canvas” GameObject in the Hierarchy window
4. Change the Canvas Render Mode to Screen Space-Camera in the Inspector window
5. Observe the Game view
6. Change the Canvas Render Mode to Screen Space-Overlay in the Inspector window
7. Observe the Game view
Expected result: The button is displayed
Actual result: The button disappears
Reproducible with: 2023.2.8f1, 2023.2.12f1, 2023.3.0b9
Not reproducible with: 2022.3.20f1, 2023.2.7f1
Couldn't test with: 2021.3.35f1
Reproducible on: Windows 11
Not reproducible on: No other environment tested