ObjectTypeAttribute Class
Extends PropertyAttribute
An attribute for restricting object gui fields to one or more specified target types. This allows for serialized interfaces and abstract class references that work on MonoBehaviours or SerializedAssets.
The types this property will be restricted to
bool RequiresAllTypes[Get]
If true, all types must be included. If false, any of the specified types can be included
ObjectTypeAttribute ( Type targetType,
params Type [] additionalTargetTypes )
Constructor that takes in the target type that any objects must be cast to
ObjectTypeAttribute ( bool requireAll,
Type targetType,
params Type [] additionalTargetTypes )
Constructor that takes in the target type that any objects must be cast to