diff --git a/Editor/VisibleHeadAccessoryProcessor.cs b/Editor/VisibleHeadAccessoryProcessor.cs index 1d6f5933..7026453a 100644 --- a/Editor/VisibleHeadAccessoryProcessor.cs +++ b/Editor/VisibleHeadAccessoryProcessor.cs @@ -80,6 +80,13 @@ namespace nadena.dev.modular_avatar.core.editor bool Process(ModularAvatarVisibleHeadAccessory target) { +#if UNITY_ANDROID + foreach (var target in _avatar.GetComponentsInChildren(true)) + { + Object.DestroyImmediate(target); + } + return; +#endif bool didWork = false; if (Validate(target) == ReadyStatus.Ready) @@ -161,4 +168,4 @@ namespace nadena.dev.modular_avatar.core.editor return status; } } -} \ No newline at end of file +}