Utility/ ListViewWrapper
ListViewWrapper provides keyboard navigation functionality for Unity's ListView component. It prevents individual list items from receiving focus and handles Up/Down/Next/Previous navigation between items, making keyboard navigation feel natural.
Quick Start
API
Constructor
Creates a new wrapper instance for the specified ListView.
Methods
Properties
Events
Example: List with Return Button
This example shows how to set up a ListView with a return button that handles boundary navigation.
Example: Selection Change Handling
Handle selection changes safely using OnValidSelectionChanged.
Example: Dynamic Data Updates
Validate selection after changing the data source.
Always call Enable() when your view becomes active and Disable() when it becomes inactive to prevent memory leaks.
Use OnValidSelectionChanged instead of ListView's selectionChanged to ensure you only handle valid selections.