diff --git a/Assets/VRM/UniVRM/Scripts/BlendShape/BlendShapeClip.cs b/Assets/VRM/UniVRM/Scripts/BlendShape/BlendShapeClip.cs index c78d0aa06..69ede711e 100644 --- a/Assets/VRM/UniVRM/Scripts/BlendShape/BlendShapeClip.cs +++ b/Assets/VRM/UniVRM/Scripts/BlendShape/BlendShapeClip.cs @@ -4,7 +4,7 @@ using UnityEngine; namespace VRM { - [Serializable] + [Serializable] public struct BlendShapeBinding : IEquatable { public String RelativePath; @@ -103,50 +103,6 @@ namespace VRM return m_prefab; } } - - /// - /// Apply BlendShape for Preview - /// - /// - /// - public void Apply(Transform root, float value) - { - if (Values != null) - { - foreach (var x in Values) - { - var target = root.Find(x.RelativePath); - if (target != null) - { - var sr = target.GetComponent(); - if (sr != null) - { - sr.SetBlendShapeWeight(x.Index, x.Weight * value); - } - } - } - } - - /* - if (MaterialValues != null) - { - foreach (var x in MaterialValues) - { - var target = root.Find(x.RelativePath); - if (target != null) - { - var sr = target.GetComponent(); - if (sr != null) - { - var m = sr.sharedMaterials[x.Index]; - var color = x.BaseValue + (x.TargetValue - x.BaseValue) * value; - m.SetColor(x.ValueName, color); - } - } - } - } - */ - } #endif /// @@ -180,8 +136,5 @@ namespace VRM /// [SerializeField] public bool IsBinary; - - // [SerializeField] - // public Texture2D Thumbnail; } }