diff --git a/Packages/nadena.dev.modular-avatar/Editor/BuildContext.cs b/Packages/nadena.dev.modular-avatar/Editor/BuildContext.cs index 72adf09d..40d73d4d 100644 --- a/Packages/nadena.dev.modular-avatar/Editor/BuildContext.cs +++ b/Packages/nadena.dev.modular-avatar/Editor/BuildContext.cs @@ -134,6 +134,7 @@ namespace nadena.dev.modular_avatar.core.editor Walk(AvatarDescriptor.gameObject); referencedAssets.RemoveWhere(sceneAssets.Contains); + referencedAssets.RemoveWhere(a => a is GameObject || a is Component); referencedAssets.RemoveWhere(o => !string.IsNullOrEmpty(AssetDatabase.GetAssetPath(o))); int index = 0;