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.

C++
public ref class ConstraintManagerInspector : UnityEditor::Editor
Inheritance
UnityEditor.Editor
ConstraintManagerInspector
Attributes
UnityEditor.CanEditMultipleObjectsAttribute UnityEditor.CustomEditorAttribute

Constructors

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

Product Versions
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0