root の mesh check

This commit is contained in:
ousttrue 2021-02-10 14:31:51 +09:00
parent bbec3b8579
commit f1fc97f449

View File

@ -207,6 +207,12 @@ namespace UniGLTF
Copy.transform.SetParent(m_tmpParent.transform, true);
Copy = m_tmpParent;
}
if (Copy.transform.GetComponent<Renderer>() != null)
{
// should throw ?
Debug.LogError("root mesh is not exported");
}
}
public void Dispose()