mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-09 12:29:23 -05:00
selector
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -64,7 +64,7 @@ namespace UniVRM10
|
||||
base.OnInspectorGUI();
|
||||
|
||||
// selector
|
||||
Selector.GUI();
|
||||
Selector.DrawGUI();
|
||||
|
||||
// editor
|
||||
if (m_serializedEditor != null)
|
||||
|
||||
Reference in New Issue
Block a user