日本語翻訳ドキュメントはサポートを終了しました

MRTK 2.6 以降のドキュメントについては、公式の Microsoft ドキュメント を参照してください。

    Show / Hide Table of Contents

    Class ExtendsAttribute

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

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

    Constructors

    ExtendsAttribute(Type, TypeGrouping)

    Initializes a new instance of the ExtendsAttribute class.

    Declaration
    public ExtendsAttribute(Type baseType, TypeGrouping grouping)
    Parameters
    Type Name Description
    Type baseType

    Type of class that selectable classes must derive from.

    TypeGrouping grouping

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

    Properties

    BaseType

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

    Declaration
    public Type BaseType { 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