Class ExtendsAttribute
Constraint that allows selection of classes that extend a specific class when selecting a SystemType with the Unity inspector.
Namespace: Microsoft.MixedReality.Toolkit
Assembly: cs.temp.dll.dll
Syntax
public sealed class ExtendsAttribute : SystemTypeAttribute
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 ByNamespaceFlat unless explicitly specified. |
Properties
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)
Determines whether the specified Type satisfies filter constraint.
Declaration
public override bool IsConstraintSatisfied(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | Type to test. |
Returns
Type | Description |
---|---|
Boolean | A Boolean value indicating if the type specified by |