mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-20 09:34:42 -05:00
Add message to VRMBlnedShapeProxyEditor
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user