InspectorUIUtility.DrawComponentTypeFoldout<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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