◆ TypePopup()

static System.Type TypePopup ( GUIContent  label,
System.Type  currentSelection,
System.Type  onlyDecendantsOf,
out List< System.Type >  casheListRef,
bool  useFullName = false 
)
static
See also
Usage Example: NonSerializedExamples.cs
Parameters
labelLabel with text and tool-tip to be displayed next to the TypePopup control.
currentSelectionThe currently selected type. If this value is not in the pop-up list, selection will be reset to the first item on the list.
onlyDecendantsOfLimits the types displayed in the pop-up list: Only items descended from this type will be included. Passing null will generate a pop-up of ALL types, which is probably too longer for a unity Pop-up control.
casheListRefA reference to the generated list is provided via this out parameter. It may be stored,copied or ignored.
useFullNameWhen true the full name, which includes the namespace, will be displayed. Otherwise only the name of the class will be displayed.
Returns
The type selected by the user.

References ReflectionExtensions.StaticGetAllDerivedClasses().

Referenced by EditorUtil.DrawObjectDefault< T >(), and EditorUtil.DrawObjectDefaultLayout< T >().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: