Skip to main content

Introduction

Base class for Flex List controls

"Flex List"

Fields#

NameDescription
Auto Select First ItemAutomatically select the first item on start
Grid TemplatePrefab to create for displaying item in grid
List TemplatePrefab to create for displaying item in list
Scroll RectTransform to place prefabs inside
PluginsList of filter/sort plugins
Cell SizeGrid cell size
Cell SpacingGrid cell spacing
PaddingLayout padding
List SpacingList spacing
On Selection ChangedEvent raised when selection changes

Properties#

NameDescription
itemsPerRowGet number of items per row in Grid mode
optionsGet list of options
selectedIndexGet/Set selected index
selectedItemGet the selected item

Methods#

NameDescription
AddOptionAdd an option to the list
SetFilterSets the filter
SetFilterFromInputSets the filter from an input field
SetRequireImageSets if images are required in the filter
SetRequireImageByCheckboxSets if images are required in the filter via a checkbox
SetSortSets the sort mode
SetSortByDropdownSets the sort mode from a dropdown
SetGridSet grid mode
SetLayoutSet display mode (Grid/List)
SetListSet layout mode