How to reproduce:
1. Open the attached “BugDrawerTests.zip” project
2. In the Project window, select “TestObject”
3. In the Inspector window, open the Context Menu using three dots and select “Use Int”
4. Open the Context Menu using three dots and select “Use Float”
5. Observe the result
Expected result: “PolymorphicData” appears as a foldout with a float field inside called "Value"
Actual result: “PolymorphicData” doesn’t change
Reproducible with: 2022.2.0b10, 2022.2.21f1, 2022.3.21f1, 2023.2.14f1, 2023.3.0b10
Not reproducible with: 2021.3.36f1, 2022.2.0b9
Reproduced on: macOS 14.3.1 (Intel)
Not reproducible on: No other environment tested
Notes:
- if nothing changes in the Inspector window, then setting the Editor window’s layout to “Default” should help
- for the first nonaffected editor version in the 1st step, use the "BugDrawerTests2022.zip" project and the names of fields can be not the same