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

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

    Show / Hide Table of Contents

    Class SystemTypeAttribute

    Base class for class selection constraints that can be applied when selecting a SystemType with the Unity inspector.

    Inheritance
    Object
    SystemTypeAttribute
    ExtendsAttribute
    ImplementsAttribute
    Namespace: Microsoft.MixedReality.Toolkit
    Assembly: cs.temp.dll.dll
    Syntax
    public abstract class SystemTypeAttribute : PropertyAttribute

    Constructors

    SystemTypeAttribute(Type, TypeGrouping)

    Declaration
    protected SystemTypeAttribute(Type type, TypeGrouping grouping = null)
    Parameters
    Type Name Description
    Type type

    Initializes a new instance of the SystemTypeAttribute class.

    TypeGrouping grouping

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

    Properties

    AllowAbstract

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

    Declaration
    public bool AllowAbstract { get; protected set; }
    Property Value
    Type Description
    Boolean

    Grouping

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

    Declaration
    public TypeGrouping Grouping { get; protected set; }
    Property Value
    Type Description
    TypeGrouping

    Methods

    IsConstraintSatisfied(Type)

    Determines whether the specified Type satisfies filter constraint.

    Declaration
    public virtual 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.

    Back to top Generated by DocFX