bug fix
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user