Class ImplementsAttribute
Constraint that allows selection of classes that implement a specific interface when selecting a SystemType with the Unity inspector.
Implements
PropertyAttribute
Namespace: Microsoft.MixedReality.Toolkit
Assembly: cs.temp.dll.dll
Syntax
public sealed class ImplementsAttribute : SystemTypeAttribute, PropertyAttribute
Constructors
ImplementsAttribute(Type, TypeGrouping)
Initializes a new instance of the ImplementsAttribute class.
Declaration
public ImplementsAttribute(Type interfaceType, TypeGrouping grouping)
Parameters
Type | Name | Description |
---|---|---|
Type | interfaceType | Type of interface that selectable classes must implement. |
TypeGrouping | grouping | Gets or sets grouping of selectable classes. Defaults to |
ImplementsAttribute(Type, TypeGrouping)
Initializes a new instance of the ImplementsAttribute class.
Declaration
public ImplementsAttribute(Type interfaceType, TypeGrouping grouping)
Parameters
Type | Name | Description |
---|---|---|
Type | interfaceType | Type of interface that selectable classes must implement. |
TypeGrouping | grouping | Gets or sets grouping of selectable classes. Defaults to |
Properties
InterfaceType
Gets the type of interface that selectable classes must implement.
Declaration
public Type InterfaceType { get; }
Property Value
Type | Description |
---|---|
Type |
InterfaceType
Gets the type of interface that selectable classes must implement.
Declaration
public Type InterfaceType { get; }
Property Value
Type | Description |
---|---|
Type |
Methods
IsConstraintSatisfied(Type)
Declaration
public override bool IsConstraintSatisfied(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type |
Returns
Type | Description |
---|---|
Boolean |
Overrides
IsConstraintSatisfied(Type)
Declaration
public override bool IsConstraintSatisfied(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type |
Returns
Type | Description |
---|---|
Boolean |
Overrides
Implements
PropertyAttribute