update
This commit is contained in:
@@ -1029,6 +1029,8 @@ public class UmaViewerBuilder : MonoBehaviour
|
|||||||
if (CurrentUMAContainer != null)
|
if (CurrentUMAContainer != null)
|
||||||
{
|
{
|
||||||
//It seems that OnDestroy will executed after new model loaded, which cause new FacialPanels empty...
|
//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);
|
UmaViewerUI.Instance.LoadFacialPanels(null);
|
||||||
Destroy(CurrentUMAContainer.gameObject);
|
Destroy(CurrentUMAContainer.gameObject);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -200,7 +200,7 @@ public class UmaViewerUI : MonoBehaviour
|
|||||||
Destroy(ui.gameObject);
|
Destroy(ui.gameObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (target == null) return;
|
||||||
|
|
||||||
foreach(var emotion in target.Container.FaceEmotionKey)
|
foreach(var emotion in target.Container.FaceEmotionKey)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user