I am trying to use a custom created enum into an editor script and i have a problem with the resulted popup not updating the value of the field in inspector. The structure is like this:
[System.Serializable]
public enum ItemType
{
none,
itemtype1,
itemtype2
}
// and in the editor class for this type i have
items.itemType = (ItemType)EditorGUILayout.EnumPopup("Item Type", ItemType.none);
Is there anything else to setup for the popup to work?