 | EditorGUIUtilsListField Method (Boolean, GUIContent, IList, FuncInt32, IList, Type, 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,
Type objectType,
out IList newList
)
Public Shared Function ListField (
foldout As Boolean,
foldoutText As GUIContent,
list As IList,
createList As Func(Of Integer, IList),
objectType As Type,
<OutAttribute> ByRef newList As IList
) As Boolean
public:
static bool ListField(
bool foldout,
GUIContent^ foldoutText,
IList^ list,
Func<int, IList^>^ createList,
Type^ objectType,
[OutAttribute] IList^% newList
)
static member ListField :
foldout : bool *
foldoutText : GUIContent *
list : IList *
createList : Func<int, IList> *
objectType : Type *
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. - objectType
- Type: SystemType
Unity object type of the list items. - newList
- Type: System.CollectionsIList
Modified list.
Return Value
Type:
BooleanWhether to show all list entries now, or not.
See Also