DontApplyToListElementsAttribute class

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector.Attributes
public sealed class DontApplyToListElementsAttribute : Attribute, _Attribute

DontApplyToListElements is used on other attributes, and indicates that those attributes should be applied only to the list, and not to the elements of the list.

Use this on attributes that should only work on a list or array property as a whole, and not on each element of the list.

  • System.Object
  • System.Attribute
  • DontApplyToListElementsAttribute

The following example shows how DontApplyToListElements is used on ShowIfAttribute.

[AttributeUsage(AttributeTargets.All, AllowMultiple = true, Inherited = true)]
public sealed class VisibleIfAttribute : Attribute
    public string MemberName { get; private set; }

    public VisibleIfAttribute(string memberName)
        this.MemberName = memberName;


public DontApplyToListElementsAttribute()

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.