diff --git a/Runtime/RuntimeUtil.cs b/Runtime/RuntimeUtil.cs index de3d24a..e0f78db 100644 --- a/Runtime/RuntimeUtil.cs +++ b/Runtime/RuntimeUtil.cs @@ -57,7 +57,7 @@ internal static T GetOrAddComponent(this Component obj) where T : Component [CanBeNull] public static string RelativePath(GameObject root, GameObject child) { - return RelativePath(root.transform, child.transform); + return RelativePath(root?.transform, child?.transform); } ///