@kwellman after dig into creator, i found the plugin already supports widgets, but the widget can only
AlignOnce. If want to support align in runtime, then
- plugin should retain the
targetit aligns to and the
nodewhich is will do align
- when the target or node is deleted by codes, then plugin(reader and other codes) doesn’t know it, so
nodewill not been deleted, which is error.
If plugin doesn’t retain them, then they will be wild pointer. So we can only align the Widget once.