Tanoda
TypeReferences.ClassExtendsAttribute Class Reference

Constraint that allows selection of classes that extend a specific class when selecting a ClassTypeReference with the Unity inspector. More...

Inheritance diagram for TypeReferences.ClassExtendsAttribute:
TypeReferences.ClassTypeConstraintAttribute

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...
 
- Properties inherited from TypeReferences.ClassTypeConstraintAttribute
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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ClassExtendsAttribute() [1/2]

TypeReferences.ClassExtendsAttribute.ClassExtendsAttribute ( )

Initializes a new instance of the ClassExtendsAttribute class.

Definition at line 84 of file ClassTypeConstraintAttribute.cs.

◆ ClassExtendsAttribute() [2/2]

TypeReferences.ClassExtendsAttribute.ClassExtendsAttribute ( Type  baseType)

Initializes a new instance of the ClassExtendsAttribute class.

Parameters
baseTypeType of class that selectable classes must derive from.

Definition at line 91 of file ClassTypeConstraintAttribute.cs.

Member Function Documentation

◆ IsConstraintSatisfied()

override bool TypeReferences.ClassExtendsAttribute.IsConstraintSatisfied ( Type  type)
virtual

Determines whether the specified Type satisfies filter constraint.

Reimplemented from TypeReferences.ClassTypeConstraintAttribute.

Definition at line 101 of file ClassTypeConstraintAttribute.cs.

Property Documentation

◆ BaseType

Type TypeReferences.ClassExtendsAttribute.BaseType
get

Gets the type of class that selectable classes must derive from.

Definition at line 98 of file ClassTypeConstraintAttribute.cs.


The documentation for this class was generated from the following file: