/// <summary> /// Removes the child node. /// </summary> /// <param name="node">The node.</param> /// <returns></returns> public virtual bool RemoveChildNode(SceneNode2D node) { if (itemHashSet.Remove(node.GUID)) { node.Detach(); ItemsInternal.Remove(node); node.Parent = null; return(true); } else { return(false); } }
protected override void OnDetach() { content?.Detach(); base.OnDetach(); }