mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-04-25 07:28:51 -05:00
fix slider
This commit is contained in:
parent
b0d8cfa567
commit
b1c431a04e
|
|
@ -57,7 +57,7 @@ namespace UniVRM10
|
|||
public static bool FloatSlider(Rect rect, SerializedProperty prop, float maxValue)
|
||||
{
|
||||
var oldValue = prop.floatValue;
|
||||
var newValue = EditorGUI.Slider(rect, prop.floatValue, 0, 100f);
|
||||
var newValue = EditorGUI.Slider(rect, prop.floatValue, 0, maxValue);
|
||||
if (newValue != oldValue)
|
||||
{
|
||||
prop.floatValue = newValue;
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ namespace UniVRM10
|
|||
|
||||
y += height;
|
||||
rect = new Rect(position.x, y, position.width, height);
|
||||
if (ExpressionEditorHelper.FloatSlider(rect, property.FindPropertyRelative(nameof(MorphTargetBinding.Weight)), 100))
|
||||
if (ExpressionEditorHelper.FloatSlider(rect, property.FindPropertyRelative(nameof(MorphTargetBinding.Weight)), 1.0f))
|
||||
{
|
||||
changed = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user