How to reproduce:
1. Open the user’s attached “TestGameWindowTitle”
2. Click the “Test → Rename game view title to Hello” button in the menu
3. Select the “Hello” window
Expected result: Game view successfully rendered in the window
Actual result: Nothing is rendered in the window and “ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index” error is thrown
Reproducible with: 2022.1.0a16, 2022.1.18f1, 2022.2.0b9, 2023.1.0a10
Not reproducible with: 2020.3.40f1, 2021.3.11f1, 2022.1.0a15, 2023.1.0a11, 2023.1.0a12
Reproduced on: macOS 12.5 (Intel)
Note: Issue happens due to GameView.DoToolbarGUI method reliance on the “Game” name