static void StretchNode() { //var selobjs = UnityEditor.Selection.objects; //if (selobjs != null && selobjs.Length==1) //{ // sman.StartStretchMode(selobjs[0].name); //} //else //{ // Debug.Log("Need to select a single node"); //} sman.StartStretchMode(); }