EditorGUI.InspectorTitlebar Manual     Reference     Scripting  
Scripting > Editor Classes > EditorGUI
EditorGUI.InspectorTitlebar

static function InspectorTitlebar (position : Rect, foldout : bool, targetObj : Object) : bool

Parameters

NameDescription
position Rectangle on the screen to use for the titlebar.
foldout The foldout state shown with the arrow.
targetObj The object (for example a component) that the titlebar is for.

Returns

bool - The foldout state selected by the user.

Description

Make an inspector-window-like titlebar.

The titlebar has a foldout arrow, a help icon, and a settings menu that depends on the type of the object supplied.