This commit is contained in:
左右看
2022-10-31 03:52:07 +08:00
parent 6d980eda0c
commit 910e020e08
+2
View File
@@ -966,6 +966,7 @@ public class UmaViewerBuilder : MonoBehaviour
public void UnloadAllBundle(bool unloadAllObjects = false) public void UnloadAllBundle(bool unloadAllObjects = false)
{ {
foreach (var bundle in Main.LoadedBundles) foreach (var bundle in Main.LoadedBundles)
{ {
bundle.Value.Unload(unloadAllObjects); bundle.Value.Unload(unloadAllObjects);
@@ -1017,6 +1018,7 @@ 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...
UmaViewerUI.Instance.LoadFacialPanels(null); UmaViewerUI.Instance.LoadFacialPanels(null);
Destroy(CurrentUMAContainer.gameObject); Destroy(CurrentUMAContainer.gameObject);
} }