Reproduction steps:
1. Open the attached project “IMGUIRepro”
2. Open “Assets/REPRO_SCENE” scene
3. In the Hierarchy window select “Barrel” GameObject
4. Inspect the Inspector and Console window
Expected result: “Quest Control” script shows its values and there are no errors in the Console window
Actual result: “Quest Control” script doesn’t show any of its values and an error is thrown in the Console window
Reproducible with: 2022.2.0a14, 2022.2.5f1, 2023.1.0b2, 2023.2.0a2
Not reproducible with: 2020.3.44f1, 2021.3.18f1, 2022.2.0a13
Reproducible on: macOS 13.1 (Intel)