fix: Visible Head Accessory incorrectly applied when building for Quest standalone (#514)

This commit is contained in:
Reina_Sakiria 2023-11-01 19:07:04 +09:00 committed by GitHub
parent a5bc6c50ac
commit b4a64f2a4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,6 +80,13 @@ namespace nadena.dev.modular_avatar.core.editor
bool Process(ModularAvatarVisibleHeadAccessory target)
{
#if UNITY_ANDROID
foreach (var target in _avatar.GetComponentsInChildren<ModularAvatarVisibleHeadAccessory>(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;
}
}
}
}