private void ShowText() { if (m_TextElement != null && m_TextElement.hierarchy.parent == null) { VisualElement textParent = this; GraphView gv = GetFirstAncestorOfType <GraphView>(); if (gv != null) { textParent = gv; } textParent.Add(m_TextElement); if (textParent != this) { if (m_TextAttacher == null) { m_TextAttacher = new Attacher(m_TextElement, m_IconElement, SpriteAlignment.TopRight); } else { m_TextAttacher.Reattach(); } } m_TextAttacher.distance = 0; m_TextElement.ResetPositionProperties(); ComputeTextSize(); } }