This commit is contained in:
ousttrue
2021-01-27 14:11:53 +09:00
parent 0ec33be304
commit ab79501f9f
3 changed files with 25 additions and 17 deletions

View File

@@ -74,26 +74,34 @@ namespace UniVRM10
};
}
public void GUI()
public void DrawGUI()
{
EditorGUILayout.Space();
EditorGUILayout.LabelField("Select Expression", EditorStyles.boldLabel);
m_mode = GUILayout.Toolbar(m_mode, MODES);
switch (m_mode)
var backup = GUI.enabled;
try
{
case 0:
SelectGUI();
break;
GUI.enabled = true;
EditorGUILayout.Space();
EditorGUILayout.LabelField("Select Expression", EditorStyles.boldLabel);
case 1:
m_clipList.GUI();
break;
m_mode = GUILayout.Toolbar(m_mode, MODES);
switch (m_mode)
{
case 0:
SelectGUI();
break;
default:
throw new NotImplementedException();
case 1:
m_clipList.GUI();
break;
default:
throw new NotImplementedException();
}
}
finally
{
GUI.enabled = backup;
}
}
void SelectGUI()

View File

@@ -181,7 +181,7 @@ namespace UniVRM10
return m_changed;
}
List<bool> m_meshFolds = new List<bool>();
static List<bool> m_meshFolds = new List<bool>();
bool MorphTargetBindsGUI()
{
bool changed = false;

View File

@@ -64,7 +64,7 @@ namespace UniVRM10
base.OnInspectorGUI();
// selector
Selector.GUI();
Selector.DrawGUI();
// editor
if (m_serializedEditor != null)