diff --git a/Editor/MergeSkinnedMeshEditor.cs b/Editor/MergeSkinnedMeshEditor.cs index 6570e1dee..7c9404c03 100644 --- a/Editor/MergeSkinnedMeshEditor.cs +++ b/Editor/MergeSkinnedMeshEditor.cs @@ -27,6 +27,13 @@ private static class Style public override void OnInspectorGUI() { + if (((MergeSkinnedMesh)target).GetComponent().sharedMesh) + { + GUILayout.Label($"Mesh of SkinnedMeshRenderer is not None!", Style.WarningStyle); + GUILayout.Label($"You should add MergeSkinnedMesh onto new GameObject with new SkinnedMeshRenderer!", + Style.WarningStyle); + } + var renderersProp = serializedObject.FindProperty("renderers"); var staticRenderersProp = serializedObject.FindProperty("staticRenderers");