How to reproduce:
- Open the project “IN-62922“
- Open “SampleScene“ scene
- Open CustomEditor.cs in Inspector window and observe that VisualTreeAsset.uxml is attached
- Open CustomEditor.cs to uncomment Line 10 and in Line 11 change panelOldName to panelNewName
- Save the CustomEditor.cs and observe CustomEditor.cs in Inspector window
Expected result: VisualTreeAsset.uxml stays attached to CustomEditor.cs
Actual result: VisualTreeAsset.uxml is detached from CustomEditor.cs
Reproducible with: 2021.3.34f1, 2022.3.18f1, 2023.2.7f1, 2023.3.0b4
Reproducible on: Windows 11 Pro (23H2)
Not reproducible on: No other environment tested
Note: the bug occurs when using both private and public access modifiers