From f1d12c3b04522f155b7793a17d1347498d5adb13 Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Fri, 18 Aug 2023 15:08:49 +0900 Subject: [PATCH] fix compile error on Unity 2021.1 --- Scripts/Utils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/Utils.cs b/Scripts/Utils.cs index 7736a94..35f457c 100644 --- a/Scripts/Utils.cs +++ b/Scripts/Utils.cs @@ -245,7 +245,7 @@ namespace Coffee.UIParticleExtensions } } -#if !UNITY_2020_3_OR_NEWER +#if !UNITY_2020_3_OR_NEWER || UNITY_2021_1 public static T GetComponentInParent(this Component self, bool includeInactive) where T : Component { if (!self) return null;