diff --git a/Assets/VRM10.Samples/Runtime/AIUEO.cs b/Assets/VRM10.Samples/Runtime/AIUEO.cs index 4f81259e7..58fe8e65b 100644 --- a/Assets/VRM10.Samples/Runtime/AIUEO.cs +++ b/Assets/VRM10.Samples/Runtime/AIUEO.cs @@ -30,17 +30,17 @@ namespace UniVRM10.Samples { for (var value = 0.0f; value <= 1.0f; value += velocity) { - VRM.Expression.Accumulator.SetPresetValue(preset, value); + VRM.Expression.SetWeight(ExpressionKey.CreateFromPreset(preset), value); yield return null; } - VRM.Expression.Accumulator.SetPresetValue(preset, 1.0f); + VRM.Expression.SetWeight(ExpressionKey.CreateFromPreset(preset), 1.0f); yield return new WaitForSeconds(wait); for (var value = 1.0f; value >= 0; value -= velocity) { - VRM.Expression.Accumulator.SetPresetValue(preset, value); + VRM.Expression.SetWeight(ExpressionKey.CreateFromPreset(preset), value); yield return null; } - VRM.Expression.Accumulator.SetPresetValue(preset, 0); + VRM.Expression.SetWeight(ExpressionKey.CreateFromPreset(preset), 0); yield return new WaitForSeconds(wait * 2); } diff --git a/Assets/VRM10.Samples/Runtime/Blinker.cs b/Assets/VRM10.Samples/Runtime/Blinker.cs index 0ff3b7041..815312342 100644 --- a/Assets/VRM10.Samples/Runtime/Blinker.cs +++ b/Assets/VRM10.Samples/Runtime/Blinker.cs @@ -72,10 +72,10 @@ namespace UniVRM10.Samples break; } - m_controller.Expression.Accumulator.SetPresetValue(VrmLib.ExpressionPreset.Blink, value); + m_controller.Expression.SetWeight(ExpressionKey.CreateFromPreset(VrmLib.ExpressionPreset.Blink), value); yield return null; } - m_controller.Expression.Accumulator.SetPresetValue(VrmLib.ExpressionPreset.Blink, 1.0f); + m_controller.Expression.SetWeight(ExpressionKey.CreateFromPreset(VrmLib.ExpressionPreset.Blink), 1.0f); // wait... yield return new WaitForSeconds(ClosingTime); @@ -91,10 +91,10 @@ namespace UniVRM10.Samples break; } - m_controller.Expression.Accumulator.SetPresetValue(VrmLib.ExpressionPreset.Blink, value); + m_controller.Expression.SetWeight(ExpressionKey.CreateFromPreset(VrmLib.ExpressionPreset.Blink), value); yield return null; } - m_controller.Expression.Accumulator.SetPresetValue(VrmLib.ExpressionPreset.Blink, 0); + m_controller.Expression.SetWeight(ExpressionKey.CreateFromPreset(VrmLib.ExpressionPreset.Blink), 0); } }