API reference
API reference
Select your platform
No SDKs available
No versions available

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.

Fields

Type [] Types[Get]
string TypeFromFieldName[Get]

Member Functions

Creates a new Interface attribute.
Parameters
type
The type of interface which is allowed.
types
Extra types of interface which is allowed.
InterfaceAttribute
( string typeFromFieldName )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon