InterfaceAttribute Class
Extends PropertyAttribute
When this attribute is attached to a MonoBehaviour field within a Unity Object, this allows an interface to be specified in to to entire only a specific type of MonoBehaviour can be attached.
string TypeFromFieldName[Get]
InterfaceAttribute ( Type type,
params Type[] types )
Creates a new Interface attribute.
ParameterstypeThe type of interface which is allowed.
typesExtra types of interface which is allowed.
InterfaceAttribute ( string typeFromFieldName )