static void SplitlSelLink() { var selobj = UnityEditor.Selection.activeGameObject; if (selobj != null) { sman.SplitLink(selobj.name); } else { Debug.Log("Need to select a nodes"); } }