diff --git a/VContainer/Assets/VContainer/Runtime/Unity/ObjectResolverUnityExtensions.cs b/VContainer/Assets/VContainer/Runtime/Unity/ObjectResolverUnityExtensions.cs index ce0c1b01..590311fc 100644 --- a/VContainer/Assets/VContainer/Runtime/Unity/ObjectResolverUnityExtensions.cs +++ b/VContainer/Assets/VContainer/Runtime/Unity/ObjectResolverUnityExtensions.cs @@ -137,10 +137,10 @@ static void ResetParent(T instance) where T : UnityEngine.Object switch (instance) { case Component component: - component.transform.parent = null; + component.transform.SetParent(null, false); break; case GameObject gameObject: - gameObject.transform.parent = null; + gameObject.transform.SetParent(null, false); break; } }