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

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

    Show / Hide Table of Contents

    Class ConstraintManagerInspector

    Custom inspector for constraint manager. Offers two modes depending on if auto constraint selection is active or not. In auto constraint selection mode, all constraints attached to the current game object will be displayed with respective goto buttons as well as an add button that allows adding new constraint components to the game object. In manual constraint selection mode, a list of user configured constraints is shown with options to modify the list, goto buttons as well as adding new constraints to the game object.

    Inheritance
    Object
    ConstraintManagerInspector
    Namespace: Microsoft.MixedReality.Toolkit.Editor
    Assembly: cs.temp.dll.dll
    Syntax
    public class ConstraintManagerInspector : UnityEditor.Editor

    Methods

    DrawConstraintManagerFoldout(GameObject, SerializedProperty, SerializedProperty, Boolean)

    Util method for drawing a consistent constraints section. Use this method in a component inspector for linking to a constraint manager.

    Declaration
    public static bool DrawConstraintManagerFoldout(GameObject gameObject, SerializedProperty managerEnabled, SerializedProperty managerRef, bool isExpanded)
    Parameters
    Type Name Description
    GameObject gameObject

    Game object the constraint manager is attached to.

    SerializedProperty managerEnabled

    Serialized property for enabling the manager - needs to be of type bool.

    SerializedProperty managerRef

    Serialized property of the constraint manager component link - needs to be type of ConstraintManager.

    Boolean isExpanded

    Flag for indicating if the constraint foldout was previously collapsed or expanded.

    Returns
    Type Description
    Boolean

    Current state of expanded or collapsed constraint foldout. Returns true if expanded / contents visible.

    OnInspectorGUI()

    Declaration
    public override void OnInspectorGUI()
    Back to top Generated by DocFX