From 1bd6cdab75636e11d9d84e20778b0cdde9738861 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Tue, 9 Jun 2020 12:31:16 +0900 Subject: [PATCH] =?UTF-8?q?=E6=9C=AA=E4=BD=BF=E7=94=A8=E3=82=B3=E3=83=BC?= =?UTF-8?q?=E3=83=89=E3=80=81=E3=82=B3=E3=83=A1=E3=83=B3=E3=83=88=E5=89=8A?= =?UTF-8?q?=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Scripts/BlendShape/BlendShapeClip.cs | 49 +------------------ 1 file changed, 1 insertion(+), 48 deletions(-) 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; } }