Ungroups the given
node, moving all of
node's children into
node's parent and removing
node. Returns an array of nodes that were children of
ungroup(node: SceneNode & ChildrenMixin): Array<SceneNode>
The node to ungroup.
This API is roughly the equivalent of pressing Ctrl-Shift-G/⌘⇧G in the editor, but ungroups the given node rather than all nodes in the current selection.
If the ungrouped node is part of the current selection, the ungrouped node's children will become part of the selection. Otherwise the selection is unchanged.
Instances cannot be ungrouped
Components cannot be ungrouped
Only group-like nodes can be ungrouped
The given node cannot be ungrouped