Class SystemTypeAttribute
Base class for class selection constraints that can be applied when selecting a SystemType with the Unity inspector.
Implements
Namespace: Microsoft.MixedReality.Toolkit
Assembly: cs.temp.dll.dll
Syntax
public abstract class SystemTypeAttribute : PropertyAttribute, PropertyAttribute
Constructors
SystemTypeAttribute(Type, TypeGrouping)
Declaration
protected 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 |
SystemTypeAttribute(Type, TypeGrouping)
Declaration
protected 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 |
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 |
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
Declaration
public TypeGrouping Grouping { get; protected set; }
Property Value
Type | Description |
---|---|
TypeGrouping |
Grouping
Gets or sets grouping of selectable classes. Defaults to
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 |
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 |