3D GUI lifecycle edge case
brentyi opened this issue · comments
Brent Yi commented
Currently, if we:
- Call
add_3d_gui_container()
to add a 3D GUI container at/gui
. - Add some GUI elements to
/gui
. Buttons, sliders, etc. - Add another 3D GUI container at
/gui
, overwriting the original one.
The original GUI container and its contents will be erased, but callbacks, configs, etc for the GUI elements inside of it won't be cleaned out. This will slowly leak memory.