SelectList

By AngryAnt.

Description
Visualises a list of strings or objects overriding ToString and returns the item selected by the user. Clicking a selected item will deselect it.

Optionally, the OnListItemGUI delegate can be used to do custom GUI rendering of list items.

Usage
In this example, myList could be an ArrayList of strings or instances of your own type, returning the desired list label in ToString.

In this example, the same list is used, only this time it is visualised using a custom list item rendering function.

Further advancing the use of custom list item rendering functions, you could implement nested lists similar to this: