chore: fix harmless use-after-destroy warning in Activator

This commit is contained in:
bd_ 2022-12-18 15:41:43 +09:00
parent 9d63ca60e4
commit 2bea35b9df

View File

@ -58,6 +58,8 @@ namespace nadena.dev.modular_avatar.core
{ {
EditorApplication.delayCall += () => EditorApplication.delayCall += () =>
{ {
if (this == null) return;
gameObject.hideFlags = HideFlags.HideInHierarchy; gameObject.hideFlags = HideFlags.HideInHierarchy;
if (!HasMAComponentsInScene()) if (!HasMAComponentsInScene())
{ {