Skip to content

Commit

Permalink
fix compile error on Unity 2021.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mob-sakai committed Aug 18, 2023
1 parent db28f17 commit f1d12c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public static void DestroyImmediate(Object obj)
}
}

#if !UNITY_2020_3_OR_NEWER
#if !UNITY_2020_3_OR_NEWER || UNITY_2021_1
public static T GetComponentInParent<T>(this Component self, bool includeInactive) where T : Component
{
if (!self) return null;
Expand Down

0 comments on commit f1d12c3

Please sign in to comment.