diff --git a/Scripts/BlendShape/Editor/VRMBlnedShapeProxyEditor.cs b/Scripts/BlendShape/Editor/VRMBlnedShapeProxyEditor.cs index 11de4603d..622d67328 100644 --- a/Scripts/BlendShape/Editor/VRMBlnedShapeProxyEditor.cs +++ b/Scripts/BlendShape/Editor/VRMBlnedShapeProxyEditor.cs @@ -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)