public KeyValuePair <BlendShapeKey, float> Slider() { 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); GUI.enabled = enable; return(new KeyValuePair <BlendShapeKey, float>(m_key, newValue)); }
public void Slider() { if (m_target.BlendShapeAvatar == null) { return; } var oldValue = m_target.GetValue(m_key); var newValue = EditorGUILayout.Slider(m_key.ToString(), oldValue, 0, 1.0f); if (oldValue != newValue) { m_target.SetValue(m_key, newValue); } }
public void Slider() { if (m_target.BlendShapeAvatar == null) { return; } 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); GUI.enabled = enable; if (Application.isPlaying && oldValue != newValue) { m_target.SetValue(m_key, newValue); } }
public static float GetValue(this VRMBlendShapeProxy proxy, String key) { return(proxy.GetValue(new BlendShapeKey(key))); }
public static float GetValue(this VRMBlendShapeProxy proxy, String key) { return(proxy.GetValue(BlendShapeKey.CreateUnknown(key))); }
public static float GetValue(this VRMBlendShapeProxy proxy, BlendShapePreset key) { return(proxy.GetValue(BlendShapeKey.CreateFromPreset(key))); }