mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class ImplementsAttribute

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

    Inheritance
    Object
    SystemTypeAttribute
    ImplementsAttribute
    Implements
    PropertyAttribute
    Inherited Members
    SystemTypeAttribute.Grouping
    SystemTypeAttribute.AllowAbstract
    Namespace: Microsoft.MixedReality.Toolkit
    Assembly: cs.temp.dll.dll
    Syntax
    public sealed class ImplementsAttribute : SystemTypeAttribute, PropertyAttribute

    Constructors

    ImplementsAttribute(Type, TypeGrouping)

    Initializes a new instance of the ImplementsAttribute class.

    Declaration
    public ImplementsAttribute(Type interfaceType, TypeGrouping grouping)
    Parameters
    Type Name Description
    Type interfaceType

    Type of interface that selectable classes must implement.

    TypeGrouping grouping

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

    ImplementsAttribute(Type, TypeGrouping)

    Initializes a new instance of the ImplementsAttribute class.

    Declaration
    public ImplementsAttribute(Type interfaceType, TypeGrouping grouping)
    Parameters
    Type Name Description
    Type interfaceType

    Type of interface that selectable classes must implement.

    TypeGrouping grouping

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

    Properties

    InterfaceType

    Gets the type of interface that selectable classes must implement.

    Declaration
    public Type InterfaceType { get; }
    Property Value
    Type Description
    Type

    InterfaceType

    Gets the type of interface that selectable classes must implement.

    Declaration
    public Type InterfaceType { get; }
    Property Value
    Type Description
    Type

    Methods

    IsConstraintSatisfied(Type)

    Declaration
    public override bool IsConstraintSatisfied(Type type)
    Parameters
    Type Name Description
    Type type
    Returns
    Type Description
    Boolean
    Overrides
    SystemTypeAttribute.IsConstraintSatisfied(Type)

    IsConstraintSatisfied(Type)

    Declaration
    public override bool IsConstraintSatisfied(Type type)
    Parameters
    Type Name Description
    Type type
    Returns
    Type Description
    Boolean
    Overrides
    SystemTypeAttribute.IsConstraintSatisfied(Type)

    Implements

    PropertyAttribute
    In This Article
    • Constructors
      • ImplementsAttribute(Type, TypeGrouping)
      • ImplementsAttribute(Type, TypeGrouping)
    • Properties
      • InterfaceType
      • InterfaceType
    • Methods
      • IsConstraintSatisfied(Type)
      • IsConstraintSatisfied(Type)
    • Implements
    Back to top Generated by DocFX