This commit is contained in:
Mikhail 2026-04-20 20:40:46 +08:00
parent 8ea93f4405
commit c21cce34b1

View File

@ -904,7 +904,11 @@ namespace DCFApixels.DragonECS.Unity.Editors
} }
internal static bool IsNullManagedReference(this SerializedProperty property) internal static bool IsNullManagedReference(this SerializedProperty property)
{ {
#if UNITY_2021_3_OR_NEWER
return property.managedReferenceId == ManagedReferenceUtility.RefIdNull; return property.managedReferenceId == ManagedReferenceUtility.RefIdNull;
#else
return property.managedReferenceId == SerializationUtility.RefIdNull;
#endif
} }
internal static int GetChildPropertiesCount(this SerializedProperty property, Type type, out bool isEmpty) internal static int GetChildPropertiesCount(this SerializedProperty property, Type type, out bool isEmpty)
{ {