Tanoda
TypeReferences.ClassImplementsAttribute Class Reference

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

Inheritance diagram for TypeReferences.ClassImplementsAttribute:
TypeReferences.ClassTypeConstraintAttribute

Public Member Functions

 ClassImplementsAttribute ()
 Initializes a new instance of the ClassImplementsAttribute class. More...
 
 ClassImplementsAttribute (Type interfaceType)
 Initializes a new instance of the ClassImplementsAttribute 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 InterfaceType [get]
 Gets the type of interface that selectable classes must implement. 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 implement a specific interface when selecting a ClassTypeReference with the Unity inspector.

Definition at line 113 of file ClassTypeConstraintAttribute.cs.

Constructor & Destructor Documentation

◆ ClassImplementsAttribute() [1/2]

TypeReferences.ClassImplementsAttribute.ClassImplementsAttribute ( )

Initializes a new instance of the ClassImplementsAttribute class.

Definition at line 118 of file ClassTypeConstraintAttribute.cs.

◆ ClassImplementsAttribute() [2/2]

TypeReferences.ClassImplementsAttribute.ClassImplementsAttribute ( Type  interfaceType)

Initializes a new instance of the ClassImplementsAttribute class.

Parameters
interfaceTypeType of interface that selectable classes must implement.

Definition at line 125 of file ClassTypeConstraintAttribute.cs.

Member Function Documentation

◆ IsConstraintSatisfied()

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

Determines whether the specified Type satisfies filter constraint.

Reimplemented from TypeReferences.ClassTypeConstraintAttribute.

Definition at line 135 of file ClassTypeConstraintAttribute.cs.

Property Documentation

◆ InterfaceType

Type TypeReferences.ClassImplementsAttribute.InterfaceType
get

Gets the type of interface that selectable classes must implement.

Definition at line 132 of file ClassTypeConstraintAttribute.cs.


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