diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/gltfExporter.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/gltfExporter.cs index 6e5a8ba74..9df3733ed 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/gltfExporter.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/gltfExporter.cs @@ -207,6 +207,12 @@ namespace UniGLTF Copy.transform.SetParent(m_tmpParent.transform, true); Copy = m_tmpParent; } + + if (Copy.transform.GetComponent() != null) + { + // should throw ? + Debug.LogError("root mesh is not exported"); + } } public void Dispose()