PrefabUtility.UnloadPrefabContents

This commit is contained in:
ousttrue
2021-03-17 15:10:57 +09:00
parent 7eaba1dda7
commit b94fff316f

View File

@@ -48,6 +48,13 @@ namespace MeshUtility
{
return;
}
if (m_root.IsPrefab)
{
#if VRM_DEVELOP
Debug.Log($"PrefabUtility.UnloadPrefabContents({m_root.GameObject})");
#endif
PrefabUtility.UnloadPrefabContents(m_root.GameObject);
}
m_root = (value, isPrefab);
m_requireValidation = true;
RaiseExportRootChanged();