Steps to reproduce:
- Create a PanelRenderer component
- Create a MonoBehaviour that registers UIReloadCallback in OnEnable
- In the callback, add more VisualElements in the root
- Hit play
- Disable and re-enable the MonoBehaviour component on and off
Actual results: The VisualElements created in code accumulates
Expected results: No accumulation
Reproducible with versions:
Not reproducible with versions:
Can’t test with versions:
Tested on (OS):
Notes: