Class SystemTypeAttribute
Base class for class selection constraints that can be applied when selecting a SystemType with the Unity inspector.
Namespace: Microsoft.MixedReality.Toolkit
Assembly: cs.temp.dll.dll
Syntax
public abstract class SystemTypeAttribute : PropertyAttribute
Constructors
SystemTypeAttribute(Type, TypeGrouping)
Declaration
public SystemTypeAttribute(Type type, TypeGrouping grouping = null)
Parameters
Type | Name | Description |
---|---|---|
Type | type | Initializes a new instance of the SystemTypeAttribute class. |
TypeGrouping | grouping | Gets or sets grouping of selectable classes. Defaults to ByNamespaceFlat unless explicitly specified. |
Properties
AllowAbstract
Gets or sets whether abstract classes can be selected from drop-down.
Defaults to a value of false
unless explicitly specified.
Declaration
public bool AllowAbstract { get; protected set; }
Property Value
Type | Description |
---|---|
Boolean |
Grouping
Gets or sets grouping of selectable classes. Defaults to ByNamespaceFlat unless explicitly specified.
Declaration
public TypeGrouping Grouping { get; protected set; }
Property Value
Type | Description |
---|---|
TypeGrouping |
Methods
IsConstraintSatisfied(Type)
Determines whether the specified Type satisfies filter constraint.
Declaration
public virtual 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 |