コード例 #1
0
 private void DrawConnectFirstToLast()
 {
     if (GUILayout.Button("Connect first to last", GUILayout.Height(30)))
     {
         Undo.RecordObject(m_target, "Connect first to last");
         if (m_target.ConnectFirstToLast())
         {
             EditorUtility.SetDirty(m_target);
         }
         else
         {
             Debug.Log("Ledge does not have enough vertices, edges or targets to do this");
         }
     }
 }