Tanoda
|
Constraint that allows selection of classes that extend a specific class when selecting a ClassTypeReference with the Unity inspector. More...
Public Member Functions | |
ClassExtendsAttribute () | |
Initializes a new instance of the ClassExtendsAttribute class. More... | |
ClassExtendsAttribute (Type baseType) | |
Initializes a new instance of the ClassExtendsAttribute class. More... | |
override bool | IsConstraintSatisfied (Type type) |
Determines whether the specified Type satisfies filter constraint. More... | |
virtual bool | IsConstraintSatisfied (Type type) |
Determines whether the specified Type satisfies filter constraint. More... | |
Properties | |
Type | BaseType [get] |
Gets the type of class that selectable classes must derive from. More... | |
![]() | |
ClassGrouping | Grouping [get, set] |
Gets or sets grouping of selectable classes. Defaults to ClassGrouping.ByNamespaceFlat unless explicitly specified. More... | |
bool | AllowAbstract [get, set] |
Gets or sets whether abstract classes can be selected from drop-down. Defaults to a value of false unless explicitly specified. More... | |
Constraint that allows selection of classes that extend a specific class when selecting a ClassTypeReference with the Unity inspector.
Definition at line 79 of file ClassTypeConstraintAttribute.cs.
TypeReferences.ClassExtendsAttribute.ClassExtendsAttribute | ( | ) |
Initializes a new instance of the ClassExtendsAttribute class.
Definition at line 84 of file ClassTypeConstraintAttribute.cs.
TypeReferences.ClassExtendsAttribute.ClassExtendsAttribute | ( | Type | baseType | ) |
Initializes a new instance of the ClassExtendsAttribute class.
baseType | Type of class that selectable classes must derive from. |
Definition at line 91 of file ClassTypeConstraintAttribute.cs.
|
virtual |
Determines whether the specified Type satisfies filter constraint.
Reimplemented from TypeReferences.ClassTypeConstraintAttribute.
Definition at line 101 of file ClassTypeConstraintAttribute.cs.
|
get |
Gets the type of class that selectable classes must derive from.
Definition at line 98 of file ClassTypeConstraintAttribute.cs.