Add message to VRMBlnedShapeProxyEditor

This commit is contained in:
ousttrue
2018-04-20 15:42:40 +09:00
parent 9f87451231
commit ec8a122303

View File

@@ -31,8 +31,11 @@ namespace VRM
}
var oldValue = m_target.GetValue(m_key);
var enable = GUI.enabled;
GUI.enabled = Application.isPlaying;
var newValue = EditorGUILayout.Slider(m_key.ToString(), oldValue, 0, 1.0f);
if (oldValue != newValue)
GUI.enabled = enable;
if (Application.isPlaying && oldValue != newValue)
{
m_target.SetValue(m_key, newValue);
}
@@ -57,6 +60,11 @@ namespace VRM
{
base.OnInspectorGUI();
if (!Application.isPlaying)
{
EditorGUILayout.HelpBox("Enable when playing", MessageType.Info);
}
if (m_sliders != null)
{
foreach (var slider in m_sliders)