Search Issue Tracker

Fixed

Fixed in 6000.5.0b9, 6000.6.0a5

Votes

0

Found in

6000.5.0b6

6000.6.0a4

Issue ID

UUM-139975

Regression

No

PanelRenderer UIReloadCallback accumulates code-created content

UI Toolkit Graphics

-

Steps to reproduce:

  1. Create a PanelRenderer component
  2. Create a MonoBehaviour that registers UIReloadCallback  in OnEnable
  3. In the callback, add more VisualElements in the root
  4. Hit play
  5. 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:

  •  
  1. Resolution Note:

    Fixed in 6000.6.0a5

  2. Resolution Note (fix version 6000.6.0a5):

    Fixed in 6000.6.0a5

  3. Resolution Note (fix version 6000.5.0b9):

    Fixed in 6000.5.0b9

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.