A basic Attribute class that imposes a type constraint on a field.
More...
A basic Attribute class that imposes a type constraint on a field.
Available classes :
◆ GetBaseType()
virtual Type GetBaseType |
( |
FieldInfo |
fieldInfo | ) |
|
|
virtual |
◆ GetTypeName()
virtual string GetTypeName |
( |
FieldInfo |
fieldInfo | ) |
|
|
virtual |
◆ IsConstraintSatisfied()
abstract bool IsConstraintSatisfied |
( |
Type |
type, |
|
|
FieldInfo |
fieldInfo |
|
) |
| |
|
pure virtual |
Whether the constraint is satisfied is judged.
- Parameters
-
type | Determining type |
fieldInfo | FieldInfo with this attribute specified |
- Returns
- Returns true if the constraint is satisfied.
Implemented in ClassNotStaticConstraint, ClassEnumFlagsConstraint, ClassEnumFieldConstraint, ClassGenericArgumentAttribute, ClassScriptableObjectAttribute, ClassNotNodeBehaviourAttribute, ClassComponentAttribute, ClassAssetObjectAttribute, ClassNotUnityObjectAttribute, ClassUnityObjectAttribute, and ClassExtendsAttribute.