private void DrawDeleteButton(Stretch st) { Handles.color = netDisplaySettings.deleteStretchColor; float radius = netDisplaySettings.deleteSretchRadius; Vector3 pos = st.MidPoint; if (Handles.Button(pos, Quaternion.identity, radius, radius / 3, Handles.SphereHandleCap)) { Undo.RegisterCompleteObjectUndo(creator, "Deleted Stretch"); creator.DeleteStretch(st); } }