Arbor 3: FSM & BT Graph Editor 3.2.0

- Main Page
- Packages
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | List of all members
ClassTypeConstraintAttribute Class Referenceabstract

A basic Attribute class that imposes a type constraint on a field. More...

Inheritance diagram for ClassTypeConstraintAttribute:

## Public Member Functions
virtual Type | GetBaseType (System.Reflection.FieldInfo fieldInfo)
| It returns the base type of constraints. More...
abstract bool | IsConstraintSatisfied (Type type, System.Reflection.FieldInfo fieldInfo)
| Whether the constraint is satisfied is judged. More...

## Detailed Description

A basic Attribute class that imposes a type constraint on a field.

Available classes :

- ClassTypeReference
- AnyParameterReference
- ComponentParameterReference
- InputSlotAny
- InputSlotComponent
- InputSlotUnityObject

## Member Function Documentation

virtual Type GetBaseType | ( | System.Reflection.FieldInfo | fieldInfo | ) |
| virtual

It returns the base type of constraints.

Parameters

  fieldInfo | FieldInfo with this attribute specified

Returns
  The base type of constraints

Reimplemented in ClassGenericArgumentAttribute, ClassScriptableObjectAttribute, ClassComponentAttribute, ClassUnityObjectAttribute, and ClassExtendsAttribute.

abstract bool IsConstraintSatisfied | ( | Type | type,
|  | System.Reflection.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 ClassGenericArgumentAttribute, ClassScriptableObjectAttribute, ClassComponentAttribute, ClassUnityObjectAttribute, and ClassExtendsAttribute.