-
-
Notifications
You must be signed in to change notification settings - Fork 216
Closed
Description
FindAnyObjectByType was added in version 2021.3.18 so it causes a compilation error in versions 2021.3.0~2021.3.17.
VContainer/VContainer/Assets/VContainer/Runtime/Unity/LifetimeScope.cs
Lines 118 to 125 in 892c490
static LifetimeScope Find(Type type) | |
{ | |
#if UNITY_2020_4_OR_NEWER || UNITY_2021_4_OR_NEWER || UNITY_2022_3_OR_NEWER || UNITY_2021_3_OR_NEWER | |
return (LifetimeScope)FindAnyObjectByType(type); | |
#else | |
return (LifetimeScope)FindObjectOfType(type); | |
#endif | |
} |
Metadata
Metadata
Assignees
Labels
No labels