 | EditorGUIUtilsListField Method (Boolean, GUIContent, IList, FuncInt32, IList, FuncObject, Int32, Object, 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(
bool foldout,
GUIContent foldoutText,
IList list,
Func<int, IList> createList,
Func<Object, int, Object> editItem,
out IList newList
)
Public Shared Function ListField (
foldout As Boolean,
foldoutText As GUIContent,
list As IList,
createList As Func(Of Integer, IList),
editItem As Func(Of Object, Integer, Object),
<OutAttribute> ByRef newList As IList
) As Boolean
public:
static bool ListField(
bool foldout,
GUIContent^ foldoutText,
IList^ list,
Func<int, IList^>^ createList,
Func<Object^, int, Object^>^ editItem,
[OutAttribute] IList^% newList
)
static member ListField :
foldout : bool *
foldoutText : GUIContent *
list : IList *
createList : Func<int, IList> *
editItem : Func<Object, int, Object> *
newList : IList byref -> bool
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. - editItem
- Type: SystemFuncObject, Int32, Object
Method for changing a specific list item. - newList
- Type: System.CollectionsIList
Modified list.
Return Value
Type:
BooleanWhether to show all list entries now, or not.
See Also