public virtual void OnAttachTo(TreeViewElement newParent) { transform.SetParent(newParent.childrenRoot); if (newParent != null) { newParent.GetAssociatedTreeViewSelectable().Unhighlight(); } }
public virtual void OnDragHoverOn(TreeViewElement hoveredPotentialAttachElements, TreeViewElement previousHoveredPotentialAttachElements) { if (previousHoveredPotentialAttachElements != null) { previousHoveredPotentialAttachElements.GetAssociatedTreeViewSelectable().Unhighlight(); } if (hoveredPotentialAttachElements != null) { hoveredPotentialAttachElements.GetAssociatedTreeViewSelectable().Highlight(); } }