Editar

Compartir a través de


ImplementsAttribute Class

Definition

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

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

Constructors

ImplementsAttribute(Type, TypeGrouping)

Initializes a new instance of the ImplementsAttribute 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)
Grouping

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

(Inherited from SystemTypeAttribute)
InterfaceType

Gets the type of interface that selectable classes must implement.

Methods

IsConstraintSatisfied(Type)

Determines whether the specified Type satisfies filter constraint.

Applies to