void OnGUI() { try { if (m_parent == null) { Close(); return; } m_isRepaint = false; if (m_gridRect == null) { Init(); } EditorGUI.BeginChangeCheck(); GUILayout.BeginHorizontal(); GUILayout.FlexibleSpace(); int sd = EditorGUILayout.IntField("selectedDepth", m_selectedDepth); GUILayout.EndHorizontal(); GUILayout.BeginHorizontal(); GUILayout.FlexibleSpace(); Vector2 cp = EditorGUILayout.Vector2Field("campos", m_camPos); GUILayout.EndHorizontal(); GUILayout.BeginHorizontal(); GUILayout.FlexibleSpace(); enRotate ro = (enRotate)EditorGUILayout.EnumPopup("rotate", m_camRotate); GUILayout.EndHorizontal(); GUILayout.BeginHorizontal(); GUILayout.FlexibleSpace(); int pd = EditorGUILayout.IntField("penDepth", m_penDepth); GUILayout.EndHorizontal(); if (EditorGUI.EndChangeCheck()) { m_camPos = cp; m_selectedDepth = sd; m_camRotate = ro; m_penDepth = pd; } //入力系 Input(); //描画系 //画像の描画 DrawMapTip(); if (m_isRepaint) { Repaint(); m_parent.RepaintFrontView(); } } catch (System.Exception exeption) { if (exeption is ExitGUIException) { throw exeption; } else { Debug.LogError(exeption.ToString()); } } }