public void OnSceneGUI() { if (myMeshCreator.ShowMeshLine || isEditing) { Gizmo(); } if (isEditing || isRemoving) { MouseCheck(); } // MouseCheck()를 하면 우클릭, 휠클릭을 인식하지 못하기 때문에 EditingMode에서만. if (isEditing) { Tools.current = Tool.None; ControllHandle(); } else if (isRemoving) { RemoveHandle(); Tools.current = Tool.None; } if (isEditing == true && mouseLeftDown == true) { if (editingVert != -1) { myMeshCreator.VertexModify(editingVert); } Selection.activeGameObject = myMeshCreator.gameObject; } else if (isRemoving == true && mouseLeftDown == true) { Selection.activeGameObject = myMeshCreator.gameObject; } }