Tanoda
TypeReferences.ClassTypeConstraintAttribute Class Reference

Base class for class selection constraints that can be applied when selecting a ClassTypeReference with the Unity inspector. More...

Inheritance diagram for TypeReferences.ClassTypeConstraintAttribute:
TypeReferences.ClassExtendsAttribute TypeReferences.ClassImplementsAttribute

Public Member Functions

virtual bool IsConstraintSatisfied (Type type)
 Determines whether the specified Type satisfies filter constraint. More...
 

Properties

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

Base class for class selection constraints that can be applied when selecting a ClassTypeReference with the Unity inspector.

Definition at line 37 of file ClassTypeConstraintAttribute.cs.

Member Function Documentation

◆ IsConstraintSatisfied()

virtual bool TypeReferences.ClassTypeConstraintAttribute.IsConstraintSatisfied ( Type  type)
virtual

Determines whether the specified Type satisfies filter constraint.

Parameters
typeType to test.
Returns
A bool value indicating if the type specified by type satisfies this constraint and should thus be selectable.

Reimplemented in TypeReferences.ClassExtendsAttribute, and TypeReferences.ClassImplementsAttribute.

Definition at line 68 of file ClassTypeConstraintAttribute.cs.

Property Documentation

◆ AllowAbstract

bool TypeReferences.ClassTypeConstraintAttribute.AllowAbstract
getset

Gets or sets whether abstract classes can be selected from drop-down. Defaults to a value of false unless explicitly specified.

Definition at line 55 of file ClassTypeConstraintAttribute.cs.

◆ Grouping

ClassGrouping TypeReferences.ClassTypeConstraintAttribute.Grouping
getset

Gets or sets grouping of selectable classes. Defaults to ClassGrouping.ByNamespaceFlat unless explicitly specified.

Definition at line 46 of file ClassTypeConstraintAttribute.cs.


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