using UnityEngine;
namespace EditorAttributes
{
///
/// Attribute to limit the size of a collection between a range
///
public class CollectionRangeAttribute : PropertyAttribute
{
public int MinRange { get; private set; }
public int MaxRange { get; private set; }
///
/// Attribute to limit the size of a collection between a range
///
/// Minimum size of the collection
/// Maximum size of the collection
public CollectionRangeAttribute(int minRange, int maxRange)
#if UNITY_2023_3_OR_NEWER
: base(true)
#endif
{
MinRange = minRange;
MaxRange = maxRange;
}
}
}