Basic ear morph

This commit is contained in:
左右看
2022-11-04 16:55:02 +08:00
parent 39144386e2
commit 472cdb62ed
6 changed files with 556 additions and 294 deletions
+12
View File
@@ -219,6 +219,7 @@ public class UmaViewerUI : MonoBehaviour
if (target == null) return;
List<FacialMorph> tempMorph = new List<FacialMorph>();
tempMorph.AddRange(target.EarMorphs);
tempMorph.AddRange(target.EyeBrowMorphs);
tempMorph.AddRange(target.EyeMorphs);
tempMorph.AddRange(target.MouthMorphs);
@@ -612,6 +613,17 @@ public class UmaViewerUI : MonoBehaviour
}
}
public void SetEarMorphEnable(bool isOn)
{
if (Builder.CurrentUMAContainer)
{
foreach (CySpringDataContainer cySpring in Builder.CurrentUMAContainer.GetComponentsInChildren<CySpringDataContainer>())
{
cySpring.EnableEarPhysics(!isOn);
}
}
}
public void ClearCache()
{
PlayerPrefs.DeleteAll();