Editar

Partilhar via


ConstraintManagerInspector.DrawConstraintManagerFoldout Method

Definition

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

public:
 static bool DrawConstraintManagerFoldout(UnityEngine::GameObject ^ gameObject, UnityEditor::SerializedProperty ^ managerEnabled, UnityEditor::SerializedProperty ^ managerRef, bool isExpanded);
public static bool DrawConstraintManagerFoldout (UnityEngine.GameObject gameObject, UnityEditor.SerializedProperty managerEnabled, UnityEditor.SerializedProperty managerRef, bool isExpanded);
static member DrawConstraintManagerFoldout : UnityEngine.GameObject * UnityEditor.SerializedProperty * UnityEditor.SerializedProperty * bool -> bool
Public Shared Function DrawConstraintManagerFoldout (gameObject As GameObject, managerEnabled As SerializedProperty, managerRef As SerializedProperty, isExpanded As Boolean) As Boolean

Parameters

gameObject
UnityEngine.GameObject

Game object the constraint manager is attached to.

managerEnabled
UnityEditor.SerializedProperty

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

managerRef
UnityEditor.SerializedProperty

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

isExpanded
Boolean

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

Returns

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

Applies to