diff --git a/Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/SubclassSelectorDrawer.cs b/Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/SubclassSelectorDrawer.cs index 88be58e..8a1cc23 100644 --- a/Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/SubclassSelectorDrawer.cs +++ b/Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/SubclassSelectorDrawer.cs @@ -81,7 +81,8 @@ namespace MackySoft.SerializeReferenceExtensions.Editor { m_TargetProperty.serializedObject.ApplyModifiedProperties(); }; - m_TypePopups.Add(managedReferenceFieldTypename,new TypePopupCache(popup,state)); + result = new TypePopupCache(popup, state); + m_TypePopups.Add(managedReferenceFieldTypename, result); } return result; }