fix compile error on Unity 2021.1
parent
db28f171f7
commit
f1d12c3b04
|
@ -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<T>(this Component self, bool includeInactive) where T : Component
|
||||
{
|
||||
if (!self) return null;
|
||||
|
|
Loading…
Reference in New Issue