Class ExtendsAttribute
Constraint that allows selection of classes that extend a specific class when selecting a SystemType with the Unity inspector.
Implements
PropertyAttribute
Namespace: Microsoft.MixedReality.Toolkit
Assembly: cs.temp.dll.dll
Syntax
public sealed class ExtendsAttribute : SystemTypeAttribute, PropertyAttribute
Constructors
ExtendsAttribute(Type, TypeGrouping)
Initializes a new instance of the ExtendsAttribute class.
Declaration
public ExtendsAttribute(Type baseType, TypeGrouping grouping)
Parameters
Type | Name | Description |
---|---|---|
Type | baseType | Type of class that selectable classes must derive from. |
TypeGrouping | grouping | Gets or sets grouping of selectable classes. Defaults to |
ExtendsAttribute(Type, TypeGrouping)
Initializes a new instance of the ExtendsAttribute class.
Declaration
public ExtendsAttribute(Type baseType, TypeGrouping grouping)
Parameters
Type | Name | Description |
---|---|---|
Type | baseType | Type of class that selectable classes must derive from. |
TypeGrouping | grouping | Gets or sets grouping of selectable classes. Defaults to |
Properties
BaseType
Gets the type of class that selectable classes must derive from.
Declaration
public Type BaseType { get; }
Property Value
Type | Description |
---|---|
Type |
BaseType
Gets the type of class that selectable classes must derive from.
Declaration
public Type BaseType { 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