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
    Inherited Members
    SystemTypeAttribute.Grouping
    SystemTypeAttribute.AllowAbstract
    Namespace: Microsoft.MixedReality.Toolkit
    Assembly: cs.temp.dll.dll
    Syntax
    public sealed class ImplementsAttribute : SystemTypeAttribute

    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 ByNamespaceFlat 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

    Methods

    IsConstraintSatisfied(Type)

    Determines whether the specified Type satisfies filter constraint.

    Declaration
    public override 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 type satisfies this constraint and should thus be selectable.

    Overrides
    SystemTypeAttribute.IsConstraintSatisfied(Type)
    Back to top Generated by DocFX