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.

Constructors

InterfaceAttribute ( type , types )
Creates a new Interface attribute.
Signature
Oculus.Interaction.InterfaceAttribute.InterfaceAttribute(Type type, params Type[] types)
Parameters
type: Type  The type of interface which is allowed.
types: params Type[]  Extra types of interface which is allowed.
InterfaceAttribute ( typeFromFieldName )
Signature
Oculus.Interaction.InterfaceAttribute.InterfaceAttribute(string typeFromFieldName)
Parameters
typeFromFieldName: string

Fields

TypeFromFieldName : string
Signature
string Oculus.Interaction.InterfaceAttribute.TypeFromFieldName
Types : Type[]
Signature
Type [] Oculus.Interaction.InterfaceAttribute.Types