 | EditorGUIUtilsListFieldT Method (Boolean, GUIContent, IList, FuncInt32, IList) |
Draws an inspector for modifying the specified list.
Namespace: Slash.Unity.Editor.Common.Inspectors.UtilsAssembly: Slash.Unity.Editor.Common (in Slash.Unity.Editor.Common.dll) Version: 0.0.0.0
Syntaxpublic static bool ListField<T>(
bool foldout,
GUIContent foldoutText,
ref IList list,
Func<int, IList> createList
)
where T : Object
Public Shared Function ListField(Of T As Object) (
foldout As Boolean,
foldoutText As GUIContent,
ByRef list As IList,
createList As Func(Of Integer, IList)
) As Boolean
public:
generic<typename T>
where T : Object
static bool ListField(
bool foldout,
GUIContent^ foldoutText,
IList^% list,
Func<int, IList^>^ createList
)
static member ListField :
foldout : bool *
foldoutText : GUIContent *
list : IList byref *
createList : Func<int, IList> -> bool when 'T : Object
Parameters
- foldout
- Type: SystemBoolean
Whether to show all list entries, or not. - foldoutText
- Type: GUIContent
Text to show next to the list editor. - list
- Type: System.CollectionsIList
List to draw the inspector for. - createList
- Type: SystemFuncInt32, IList
Method for creating a new list if the size should be changed.
Type Parameters
- T
- Type of the list items.
Return Value
Type:
BooleanWhether to show all list entries now, or not.
See Also