Namespace: | Sirenix.OdinInspector |
Assembly: | Sirenix.OdinInspector.Attributes |
public sealed class RequiredListLengthAttribute : Attribute, _Attribute
public RequiredListLengthAttribute()
public RequiredListLengthAttribute(int fixedLength)
System.Int32 | fixedLength | The minimum and maximum length of the collection. |
public RequiredListLengthAttribute(int minLength, int maxLength)
System.Int32 | minLength | The minimum length of the collection. |
System.Int32 | maxLength | The maximum length of the collection. |
public RequiredListLengthAttribute(int minLength, string maxLengthGetter)
System.Int32 | minLength | The minimum length of the collection. |
System.String | maxLengthGetter | A C# expression for getting the maximum length of the collection, for example "@this.otherList.Count". If set, MaxLength will be the fallback in case nothing in case MaxLengthGetter returns null. |
public RequiredListLengthAttribute(string fixedLengthGetter)
System.String | fixedLengthGetter | The minimum and maximum length of the collection. |
public RequiredListLengthAttribute(string minLengthGetter, int maxLength)
System.String | minLengthGetter | A C# expression for getting the minimum length of the collection, for example "@this.otherList.Count". If set, MinLength will be the fallback in case nothing in case MinLengthGetter returns null. |
System.Int32 | maxLength | The maximum length of the collection. |
public RequiredListLengthAttribute(string minLengthGetter, string maxLengthGetter)
System.String | minLengthGetter | A C# expression for getting the minimum length of the collection, for example "@this.otherList.Count". If set, MinLength will be the fallback in case nothing in case MinLengthGetter returns null. |
System.String | maxLengthGetter | A C# expression for getting the maximum length of the collection, for example "@this.otherList.Count". If set, MaxLength will be the fallback in case nothing in case MaxLengthGetter returns null. |
public string MaxLengthGetter
public string MinLengthGetter
public int MaxLength { get; set; }
public bool MaxLengthIsSet { get; }
public int MinLength { get; set; }
public bool MinLengthIsSet { get; }
public PrefabKind PrefabKind { get; set; }
public bool PrefabKindIsSet { get; }