Editar

Partilhar via


ConstraintManagerInspector Class

Definition

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.

public ref class ConstraintManagerInspector : UnityEditor::Editor
[UnityEditor.CanEditMultipleObjects]
[UnityEditor.CustomEditor(typeof(Microsoft.MixedReality.Toolkit.UI.ConstraintManager), true)]
public class ConstraintManagerInspector : UnityEditor.Editor
[<UnityEditor.CanEditMultipleObjects>]
[<UnityEditor.CustomEditor(typeof(Microsoft.MixedReality.Toolkit.UI.ConstraintManager), true)>]
type ConstraintManagerInspector = class
    inherit Editor
Public Class ConstraintManagerInspector
Inherits Editor
Inheritance
UnityEditor.Editor
ConstraintManagerInspector
Attributes
UnityEditor.CanEditMultipleObjectsAttribute UnityEditor.CustomEditorAttribute

Constructors

ConstraintManagerInspector()

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.

OnInspectorGUI()

Applies to