40 private bool _allowAbstract =
false;
47 get {
return _grouping; }
48 set { _grouping = value; }
56 get {
return _allowAbstract; }
57 set { _allowAbstract = value; }
78 [AttributeUsage(AttributeTargets.Field, AllowMultiple =
false)]
102 return base.IsConstraintSatisfied(type)
112 [AttributeUsage(AttributeTargets.Field, AllowMultiple =
false)]
136 if (base.IsConstraintSatisfied(type)) {
137 foreach (var interfaceType
in type.GetInterfaces())
Constraint that allows selection of classes that extend a specific class when selecting a ClassTypeRe...
ClassExtendsAttribute()
Initializes a new instance of the ClassExtendsAttribute class.
override bool IsConstraintSatisfied(Type type)
Determines whether the specified Type satisfies filter constraint.
ClassExtendsAttribute(Type baseType)
Initializes a new instance of the ClassExtendsAttribute class.
Type BaseType
Gets the type of class that selectable classes must derive from.
Constraint that allows selection of classes that implement a specific interface when selecting a Clas...
Type InterfaceType
Gets the type of interface that selectable classes must implement.
ClassImplementsAttribute(Type interfaceType)
Initializes a new instance of the ClassImplementsAttribute class.
ClassImplementsAttribute()
Initializes a new instance of the ClassImplementsAttribute class.
override bool IsConstraintSatisfied(Type type)
Determines whether the specified Type satisfies filter constraint.
Base class for class selection constraints that can be applied when selecting a ClassTypeReference wi...
bool AllowAbstract
Gets or sets whether abstract classes can be selected from drop-down. Defaults to a value of false un...
ClassGrouping Grouping
Gets or sets grouping of selectable classes. Defaults to ClassGrouping.ByNamespaceFlat unless explici...
virtual bool IsConstraintSatisfied(Type type)
Determines whether the specified Type satisfies filter constraint.
ClassGrouping
Indicates how selectable classes should be collated in drop-down menu.
@ ByNamespace
Group classes by namespace and show foldout menus for nested namespaces; for instance,...
@ ByNamespaceFlat
Group classes by namespace; for instance, "Some.Nested.Namespace > SpecialClass".
@ ByAddComponentMenu
Group classes in the same way as Unity does for its component menu. This grouping method must only be...