This commit is contained in:
左右看
2022-11-01 02:52:22 +08:00
parent 5f5f96bf4e
commit c81dd5b25f
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -1029,6 +1029,8 @@ public class UmaViewerBuilder : MonoBehaviour
if (CurrentUMAContainer != null)
{
//It seems that OnDestroy will executed after new model loaded, which cause new FacialPanels empty...
UmaViewerUI.Instance.currentMorph = null;
UmaViewerUI.Instance.LoadEmotionPanels(null);
UmaViewerUI.Instance.LoadFacialPanels(null);
Destroy(CurrentUMAContainer.gameObject);
}
+1 -1
View File
@@ -200,7 +200,7 @@ public class UmaViewerUI : MonoBehaviour
Destroy(ui.gameObject);
}
if (target == null) return;
foreach(var emotion in target.Container.FaceEmotionKey)
{