I’m building some advanced UI widgets, and I’d like to automate as much as possible.
One thing that I’d need is to know when an entity/element is added/removed to a container so that I can subscribe/unsubscribe to the onEnable event of the child, or place the child in the correct position.
I was searching but I didn’t find any ready-made way.
Do you know if there is an undocumented feature?
Unfortunately, I found only an ‘insert’ event (the remove is missing) fired on the child itself and not of the container.
I could monkey patch the addChild
, insertChild
, and removeChild
of the container, and the reparent
method of the child, but I can’t do it on the parent
property of the child