From 8141501b071fd4548b16bea51ec15ab10150b341 Mon Sep 17 00:00:00 2001 From: Ege <17130579+ege-adam@users.noreply.github.com> Date: Wed, 17 Aug 2022 22:32:36 +0300 Subject: [PATCH] Add Count to DropdownList class --- .../Scripts/Core/DrawerAttributes/DropdownAttribute.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Assets/NaughtyAttributes/Scripts/Core/DrawerAttributes/DropdownAttribute.cs b/Assets/NaughtyAttributes/Scripts/Core/DrawerAttributes/DropdownAttribute.cs index 41be9f41..e995964f 100644 --- a/Assets/NaughtyAttributes/Scripts/Core/DrawerAttributes/DropdownAttribute.cs +++ b/Assets/NaughtyAttributes/Scripts/Core/DrawerAttributes/DropdownAttribute.cs @@ -22,6 +22,7 @@ public interface IDropdownList : IEnumerable> public class DropdownList : IDropdownList { private List> _values; + public int Count { get => _values.Count; } public DropdownList() {