serializedObject.Update() is now called when an item is selected

This commit is contained in:
mackysoft 2022-03-29 20:58:30 +09:00
parent 1f0206e3cc
commit 368bae3cdc

View File

@ -79,6 +79,7 @@ namespace MackySoft.SerializeReferenceExtensions.Editor {
object obj = m_TargetProperty.SetManagedReference(type); object obj = m_TargetProperty.SetManagedReference(type);
m_TargetProperty.isExpanded = (obj != null); m_TargetProperty.isExpanded = (obj != null);
m_TargetProperty.serializedObject.ApplyModifiedProperties(); m_TargetProperty.serializedObject.ApplyModifiedProperties();
m_TargetProperty.serializedObject.Update();
}; };
result = new TypePopupCache(popup, state); result = new TypePopupCache(popup, state);