InspectorUIUtility.DrawComponentTypeFoldout<T> Method

Definition

Draws a foldout enlisting all components (or derived types) of the given type attached to the passed gameobject. Adds a button for adding any of the component (or derived types) and a follow button to highlight existing attached components.

public:
generic <typename T>
 where T : UnityEngine::MonoBehaviour static bool DrawComponentTypeFoldout(UnityEngine::GameObject ^ gameObject, bool isExpanded, System::String ^ typeDescription);
public static bool DrawComponentTypeFoldout<T> (UnityEngine.GameObject gameObject, bool isExpanded, string typeDescription) where T : UnityEngine.MonoBehaviour;
static member DrawComponentTypeFoldout : UnityEngine.GameObject * bool * string -> bool (requires 'T :> UnityEngine.MonoBehaviour)
Public Shared Function DrawComponentTypeFoldout(Of T As MonoBehaviour) (gameObject As GameObject, isExpanded As Boolean, typeDescription As String) As Boolean

Type Parameters

T

Parameters

gameObject
UnityEngine.GameObject
isExpanded
Boolean
typeDescription
String

Returns

Applies to