protected override void UpdateUI()
    {
        var enumValues = System.Enum.GetNames(propertyInfo.PropertyType);

        for (int i = 0; i < enumValues.Length; i++)
        {
            CustomDropdown.Item item = new CustomDropdown.Item();
            item.itemName        = enumValues[i];
            item.OnItemSelection = new UnityEngine.Events.UnityEvent();
            item.OnItemSelection.AddListener(delegate { OnEndEdit(i); });

            customDropdown.InstantiateDropdownItem(item);
        }

        UpdateValue();
    }