Edit

Bagikan melalui


ExtendsAttribute Class

Definition

Constraint that allows selection of classes that extend a specific class when selecting a SystemType with the Unity inspector.

public ref class ExtendsAttribute sealed : Microsoft::MixedReality::Toolkit::SystemTypeAttribute
public sealed class ExtendsAttribute : Microsoft.MixedReality.Toolkit.SystemTypeAttribute
type ExtendsAttribute = class
    inherit SystemTypeAttribute
Public NotInheritable Class ExtendsAttribute
Inherits SystemTypeAttribute
Inheritance
UnityEngine.PropertyAttribute
ExtendsAttribute

Constructors

ExtendsAttribute(Type, TypeGrouping)

Initializes a new instance of the ExtendsAttribute class.

Properties

AllowAbstract

Gets or sets whether abstract classes can be selected from drop-down. Defaults to a value of false unless explicitly specified.

(Inherited from SystemTypeAttribute)
BaseType

Gets the type of class that selectable classes must derive from.

Grouping

Gets or sets grouping of selectable classes. Defaults to ByNamespaceFlat unless explicitly specified.

(Inherited from SystemTypeAttribute)

Methods

IsConstraintSatisfied(Type)

Determines whether the specified Type satisfies filter constraint.

Applies to